diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e9ae80694875f869892f13f4fcaf1170a00dea41 (patch) | |
tree | aa2f8d8a217e2d376224c8d46b7397b68d35de2d /quanta/data/templates/scripts/javascript/preload.js | |
download | tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.tar.gz tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/data/templates/scripts/javascript/preload.js')
-rw-r--r-- | quanta/data/templates/scripts/javascript/preload.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/quanta/data/templates/scripts/javascript/preload.js b/quanta/data/templates/scripts/javascript/preload.js new file mode 100644 index 00000000..5023bb37 --- /dev/null +++ b/quanta/data/templates/scripts/javascript/preload.js @@ -0,0 +1,24 @@ +/* To include this script into an xhtml page without copying and pasting it in +add the following tags into your xhtml page. Please note that these comments are +only valid within .js (JavaScript files), +do not include them if you wish to use this script within an xhtml document. + +<script type="text/javascript" src="./preload.js"></script> + +or copy and paste the script into your document head enclosed in +<script type="text/javascript"></script> tags */ + +var arImages=new Array(); +function Preload() { + var temp = Preload.arguments; + for(x=0; x < temp.length; x++) { + arImages[x]=new Image(); + arImages[x].src=Preload.arguments[x]; + } +} + + /*this replaces your normal 'body' tag + substitute your own image names*/ + /* + < body onload="Preload('thing.png','anotherthing.png','etc etc.png')" > + */
\ No newline at end of file |