The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Rotating text links on my site
I want to rotate some text links on my side. My code is:
Code:
<a href="https://mysite.com" target="_blank" rel="nofollow">Anchor text</a> |
#2
|
|||
|
|||
<a href="https://www.css3maker.com/text-rotation.html" target="_blank">https://www.css3maker.com/text-rotation.html</a>
|
#3
|
|||
|
|||
I don't mean physical rotation but rather rotating between a list of several different links.
e.g. link to Google. When page is refreshed, it then shows Facebook link. etc. Or, it can just be randomly chosen rather than rotated. Here is some code I found: Code:
var txtGreeting = 10; var randomCount = Math.round(Math.random() * (txtGreeting - 1)) + 1; var greeting = new Array(); greeting[1] = "hello", greeting[2] = "ciao", greeting[3] = "welcome", greeting[4] = "howdy", greeting[5] = "greetings", greeting[6] = "salut", greeting[7] = "hallo", greeting[8] = "hola", greeting[9] = "Gday", greeting[10] = "Hey", document.getElementById("title").html = "greeting[randomCount]"; Any help please? |
#4
|
|||
|
|||
I got a solution now. All done!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|