PDA

View Full Version : Rotating, Revolving, redirecting Links?


jricketts
05-18-2009, 12:43 PM
How do I get an single link to rotate/revolve/redirect to other destinations (mulitple websites)? I am using dreamweaver 8.

I want to click on one link but be REDIRECTED to another link/site. How do I do this?

Thanks,
Joe

Corrosive
05-18-2009, 12:51 PM
How do I get an single link to rotate/revolve/redirect to other destinations (mulitple websites)? I am using dreamweaver 8.

I want to click on one link but be REDIRECTED to another link/site. How do I do this?

Thanks,
Joe

Off the top of my head, maybe a SQL database with some links and then an action that chooses one at random when a link is clicked. It won't be easy as you will have to fool the browser into thinking something is a link when it isn't. Maybe a null link '#' and some javascript could do this? Whatever it will be a bespoke build and I doubt DW will do it. It isn't really a web convention. When people click on links they generally want to be taken where they have been promised!

Corrosive
05-18-2009, 01:04 PM
Actually you may be able to do this with javascript alone. Try this tutorial...

http://javascriptkit.com/javatutors/random2.shtml