The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hi peeps
Could someone help me with this code please, I would like the text links and the image links to be centered please... I tried this Code:
<center>"http://3bgraphics.hypermart.net/link/3bgraphics.gif"</center>, <center>"http://html.digitalsea.net/htmlnow.gif"</center>, <center>"http://www.geocities.com/~jsmaster/jsnow.gif"</center> ![]() Code:
<script language="Javascript">
<!--
var currentdate = 0;
var core = 0;
function initArray() {
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++) {
this[i] = initArray.arguments[i];
}
}
link = new initArray(
"http://3bgraphics.hypermart.net/",
"http://html.digitalsea.net/",
"http://www.javascript-page.com/"
);
image = new initArray(
"http://3bgraphics.hypermart.net/link/3bgraphics.gif",
"http://html.digitalsea.net/htmlnow.gif",
"http://www.geocities.com/~jsmaster/jsnow.gif"
);
text = new initArray(
"3B Graphics",
"Learn HTML in 7 Easy Steps",
"Nic's JavaScript Page",
);
var currentdate = new Date();
var core = currentdate.getSeconds() % image.length;
var ranlink = link[core];
var ranimage = image[core];
var rantext = text[core];
document.write('<a href="' +ranlink+ '" target="_blank"><img src="'+ranimage+'" border="0" alt="'+rantext+'"></a>');
//-->
</SCRIPT>
|
|
#2
|
|||
|
|||
|
use this
Code:
<div align="center"> "http://3bgraphics.hypermart.net/link/3bgraphics.gif" "http://html.digitalsea.net/htmlnow.gif", "http://www.geocities.com/~jsmaster/jsnow.gif" </div> Code:
<br /> |
|
#3
|
|||
|
|||
|
Ok m8 thats great, thanks alot
![]() Hi m8...just tried it, it dont work, it prvents the link and image adds from showing at all |
|
#4
|
|||
|
|||
|
Try this script instead, place it where you want the image+link to appear.
Code:
<script language="JavaScript">
<!--
function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="img1.gif"
myimages[2]="img2.gif"
myimages[3]="img3.gif"
//specify corresponding links below
var imagelinks=new Array()
imagelinks[1]="http://www.link.com"
imagelinks[2]="http://www.link.com"
imagelinks[3]="http://www.link.net"
var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<div align='"center'"><a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a></div>')
}
random_imglink()
//-->
</script>
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|