The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
[javascript] Preloading images? How?
I want to preload some images.
I used this javascript code: Code:
window.onload = function preload_tabimages() { //preloading images var gk_tab = new Image(); gk_tab.src = "$vboptions[bburl]/newera/karteles/gk.gif"; var t_tab = new Image(); gk_tab.src = "$vboptions[bburl]/newera/karteles/t.gif"; var ets_tab = new Image(); gk_tab.src = "$vboptions[bburl]/newera/karteles/ets.gif"; var sx_tab = new Image(); gk_tab.src = "$vboptions[bburl]/newera/karteles/sx.gif"; var s_tab = new Image(); gk_tab.src = "$vboptions[bburl]/newera/karteles/s.gif"; } Thanks in advance! |
#2
|
|||
|
|||
var gk_tab = new Image();
gk_tab.src = "$vboptions[bburl]/newera/karteles/gk.gif"; var t_tab = new Image(); gk_tab.src = "$vboptions[bburl]/newera/karteles/t.gif"; i've highlighted something up there. Seems to me you've messed up the variable names. |
#3
|
|||
|
|||
Ooops!!! I'm such an idiot!
Thanks! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|