hi everybody
let me say right from the start .. I´m not a coder ... "just" a designer!
that said .. here is my question:
I´m using dreamweaver´s built in preloader for a menu. it looks like this:
function MM_preloadImage s() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.leng th,a=MM_preload Images.argument s; for(i=0; i<a.length;
i++)
if (a[i].indexOf("#")!= 0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
Then, in the body tag you have the preload:
<body onload="MM_prel oadimages('/images/image1.jpg','/images/image2.jpg')">
But I don´t want the function calls to be in the file itself, BUT linked to
an extenal js file.
can you PLEASE tell me how to do it?? (using this confusing dw
code -mm_preloadimage s that is-)
--
--------------------------------------
Part of the "No Signature Movement"
My site: http://www.webbasica.com
And for all those spammers out there,
knock yourself out:
maldito@webbasi ca.com
let me say right from the start .. I´m not a coder ... "just" a designer!
that said .. here is my question:
I´m using dreamweaver´s built in preloader for a menu. it looks like this:
function MM_preloadImage s() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.leng th,a=MM_preload Images.argument s; for(i=0; i<a.length;
i++)
if (a[i].indexOf("#")!= 0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
Then, in the body tag you have the preload:
<body onload="MM_prel oadimages('/images/image1.jpg','/images/image2.jpg')">
But I don´t want the function calls to be in the file itself, BUT linked to
an extenal js file.
can you PLEASE tell me how to do it?? (using this confusing dw
code -mm_preloadimage s that is-)
--
--------------------------------------
Part of the "No Signature Movement"
My site: http://www.webbasica.com
And for all those spammers out there,
knock yourself out:
maldito@webbasi ca.com
Comment