M
MALdito
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_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
Then, in the body tag you have the preload:
<body onload="MM_preloadimages('/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_preloadimages that is-)
--
--------------------------------------
Part of the "No Signature Movement"
My site: http://www.webbasica.com
And for all those spammers out there,
knock yourself out:
(e-mail address removed)
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_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
Then, in the body tag you have the preload:
<body onload="MM_preloadimages('/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_preloadimages that is-)
--
--------------------------------------
Part of the "No Signature Movement"
My site: http://www.webbasica.com
And for all those spammers out there,
knock yourself out:
(e-mail address removed)