| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Member | 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 | I don't know much about JS, but it is possible in PHP and actually better. PHP Code: 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. |
| |
| | #3 (permalink) |
| NamePros Member | 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 | PHP Code: To rotate php files, merely change PHP Code: PHP Code: Joe
__________________ Fused Hosting Simplicity and Superiority. █████████████████████████████████████████████ Affordable web hosting solutions; shared, reseller, shoutcast, WHMSonic, proxy, dedicated and more! My computer is broken; new components have been ordered. ![]() Last edited by TheArbiter; 11-21-2007 at 09:10 AM. Reason: typo |
| |
| | #5 (permalink) |
| Danltn.com | PHP Code: |
| |
| | #6 (permalink) |
| NamePros Member | 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 | since you want javascript http://free-javascript.blogspot.com/...e-rotator.html Quote:
| |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |