The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Creating random links list im marquee
electricwildflower
post 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>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 29th March 2024 - 05:26 AM