| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Aug 2007
Posts: 75
![]() | Javascript Question Hi, I wanted to know how to make an image rotator (with links) through javascript..is it possible to make one? Basically every time the page is refreshed I want a new image with its link to come in the others place.. In the hope that I am not asking for too much..and looking for some really helpful tips... thanks..
__________________ The Unneglectable Blog| FinanceJargon.com |NasCarSchedule.Info |financeadvisor.co.in| budgethotelsbeijing.com | researchelp.com |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Jul 2004 Location: Seattle, Wa
Posts: 596
![]() ![]() ![]() | I don't know much about JS, but it is possible in PHP and actually better. PHP Code: ????: NamePros.com http://www.namepros.com/programming/397906-javascript-question.html PHP Code: Of course, these files are all shown randomly and not in any order. If you needed to do this in order, you would need to have some kind of counter in either a file or database keeping track of what picture was shown last. |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Member Join Date: Aug 2007
Posts: 75
![]() | Thanks Derek... I wouldn't need a counter and random images are just fine... My only issue is will I be able to hyperlink the images? Is there someway that can be added to the picture.. Thanks for the help.. this is really cool though perhaps not what I am looking for... or else is there anyway I can rotate php files instead of images.. I can then include the images with their links to within those files.. as in ad1.php, ad2.php instead of pic1 pic2...
__________________ The Unneglectable Blog| FinanceJargon.com |NasCarSchedule.Info |financeadvisor.co.in| budgethotelsbeijing.com | researchelp.com |
| |
| | #4 (permalink) |
| Senior Member Join Date: Oct 2005 Location: Kent ~ U.K.
Posts: 3,209
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | PHP Code: To rotate php files, merely change PHP Code: ????: NamePros.com http://www.namepros.com/showthread.php?t=397906 PHP Code: Joe
__________________ Myself and "JackHeskett" are no longer associated with FusedHosting.net. Please pipe all PMs to admin [at] fusedhosting.net.
Last edited by TheArbiter; 11-21-2007 at 10:10 AM.
Reason: typo
|
| |
| | #5 (permalink) |
| Danltn.com Join Date: May 2007 Location: Danltn.com / Nottingham, UK
Posts: 1,201
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | PHP Code:
__________________ |
| |
| | THREAD STARTER #6 (permalink) |
| NamePros Member Join Date: Aug 2007
Posts: 75
![]() | Thanks guys..this is great will surely work with these now.. and will get back to you on this..
__________________ The Unneglectable Blog| FinanceJargon.com |NasCarSchedule.Info |financeadvisor.co.in| budgethotelsbeijing.com | researchelp.com |
| |
| | #8 (permalink) | ||||
| NamePros Legend Join Date: Dec 2005 Location: Philippines - www.Nabaza.com
Posts: 19,785
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | since you want javascript http://free-javascript.blogspot.com/...e-rotator.html
| ||||
| |