The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Something is effecting the spacers in this code . . .
I created a scheme with a random image generator (via javascript/html) inside it.
and something seems to making the spacers just go so the forums are full width. i can't get them to go to the size i want is there something in this code that could effect the spacers?: HTML Code:
<script language="JavaScript"> <!-- HIDE FROM INCOMPATIBLE BROWSERS document.writeln('<td'+' border=0 ><img src="'+xoxo[choice]+'" align=right height=253 width=486 border=0 ><'+'/td>'); // STOP HIDING FROM INCOMPATIBLE BROWSERS --> </script> ----------------------------------- <script language="JavaScript" type="text/javascript"> <!-- HIDE FROM INCOMPATIBLE BROWSERS var ic = 2; var xoxo = new Array(ic); xoxo[0] = ""; xoxo[1] = ""; function pickRandom(range) { if (Math.random) { return Math.round(Math.random() * (range-1)); } else { var now = new Date(); return (now.getTime() / 1000) % range; } } var choice = pickRandom(ic); // STOP HIDING FROM INCOMPATIBLE BROWSERS --></script> <script type="text/javascript" src="clientscript/vbulletin_global.js"></script> |
#2
|
||||
|
||||
You should be using DOM for this.
PHP Code:
|
#3
|
||||
|
||||
Hi sorry whats DOM?
|
#4
|
||||
|
||||
Document Object Model. It's they way you should be writing to the browser screen.
|
#5
|
||||
|
||||
Ok. so do i replace my script with that or what?
Sorry if i appear really stupid im new at this. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|