Creating random links list im marquee |
Creating random links list im marquee |
electricwildflower |
Feb 15 2012, 08:26 AM
Post
#1
|
Group: Members Posts: 1 Joined: 15-February 12 Member No.: 16,479 |
Hello everyone well to get to the point i need some help.
I have a website that i have a marquee on the right hand side of each page which displays ten links to various sites. Now the idea i want to do is create the marquee so that when it scrolls the links up the page it will scroll them randomly and not in order if you get me. This way i could load it with as many links as i want and every time people load up a .html page it will display random links would anyone know how to go about this idea if it's possible here is my code and thanks in advance. <textarea rows="6" cols="40"> <marquee behavior="scroll" direction="up" scrollamount="1"> <center> <a href="http://www.miserylab.com/">Miserylab</a><br /> <br /> <a href="http://www.groovingingreen.co.uk/">Grooving in Green</a><br /> <br /> <a href="http://www.angelsofliberty.com/">Angels of Liberty</a><br /> <br /> <a href="http://rhombus-rock.com/">Rhombus</a><br /> <br /> <a href="http://www.facebook.com/pages/The-River-Knows/192206560803753">The River Knows</a><br /> <br /> <a href="http://www.myspace.com/mysticaurauk">Mystic Aura</a><br /> <br /> <a href="http://www.bloodydeadandsexy.de/bdasweb/index.php">Bloody Dead and Sexy</a><br /> <br /> <a href="http://www.marchviolets.co.uk/">The March Violets</a><br /> <br /> <a href="http://cinemastrange.net/">Cinema Strange</a><br /> <br /> <a href="http://www.bauhausmusik.com/">Bauhaus</a><br /> <br /> </center> </marquee> </textarea> |
pandy |
Feb 15 2012, 09:53 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
Well, for any kind of randomness you need JavaScript or a server side programming language. You would also be better off to use a JavaScript scroller instead of MARQUEE. MARQUEE is a very old IE specific tag. Even if several other browsers support it now they don't do it consistently.
Anyway, you can't have MARQUEE or any other markup in a TEXTAREA. TEXTAREA can only contain text, not tags. http://htmlhelp.com/reference/html40/forms/textarea.html |
Lo-Fi Version | Time is now: 29th March 2024 - 05:26 AM |