473,657 Members | 2,474 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dw preload function

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:
ma*****@webbasi ca.com
Jul 20 '05 #1
7 3648
MALdito wrote:
let me say right from the start .. I´m not a coder ... "just" a designer!
Well, *become* a coder.
I´m using dreamweaver´s built in preloader for a menu. it looks like this:

function MM_preloadImage s() { //v3.0
[...]
}
What a line-optimized trash. I know why I'm not using DW anymore.
Then, in the body tag
You mean the start tag of the `body' element.
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.
Do it then and use

<script src="foobar.js" type="text/javascript"></script>

somewhere within the `head' element.
can you PLEASE tell me how to do it?? (using this confusing dw
code -mm_preloadimage s that is-)


Preloading images is a Bad Thing because you let people download data they
don't requested and most certainly won't need. Even if the caching does the
trick (which isn't for sure since you can't change the cache settings on the
client,) it slows your website down in the beginning, so most certainly
neither you nor the user will have any benefit from it. Let it be.
PointedEars

Jul 20 '05 #2
You will need to create a .js file with the function in it

eg whatever.js

Then attach the .js file to whichever pages / files you want to use it

<script src="whatever.j s"></script>

then all you need to do is call the function by using

MM_preloadimage s('im/im1.jpg','im/im2.jpg')

etc - the function will automatically detect how many images you are trying
to preload,

unfortunately there are too many people like Thomas Lahn, too eager to
brag - to slow to assist.

Hope this helps

Simon Christie
"MALdito" <ma*****@webbas ica.com> wrote in message
news:bn******** ****@ID-122517.news.uni-berlin.de...
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:
ma*****@webbasi ca.com

Jul 20 '05 #3
Well thanks Simone!!

I understood everything you said, and now I will try to explain exactly what
I need...

I need to "put" the calling functions in a linked file .. maybe even in the
js itself. Actually, the first part (the js) can stay in the html. But the
call functions has be external and then linked. Why? cause then, if i wanna
add more sections to my site, the process will become really easier .. since
all my layout is beeing done with ssi and linked stuff..

So, what i need is (in lesser words) .. how to put the calling functions
(MM_preloadimag es) in a remote file? and for that matter .. how to should
the remote js be? just copy and paste the js i have in the html right now,
and name it whatever.js ? using the same syntax??

thanks a lot for all the help

ps: to the pointedears guy .. thanks, your pointless typing is what made
simone help me ..
"steve stevo" <st***@stevoste ve.fsnet.co.uk> escribió en el mensaje
news:bn******** **@newsg1.svr.p ol.co.uk...
You will need to create a .js file with the function in it

eg whatever.js

Then attach the .js file to whichever pages / files you want to use it

<script src="whatever.j s"></script>

then all you need to do is call the function by using

MM_preloadimage s('im/im1.jpg','im/im2.jpg')

etc - the function will automatically detect how many images you are trying to preload,

unfortunately there are too many people like Thomas Lahn, too eager to
brag - to slow to assist.

Hope this helps

Simon Christie
"MALdito" <ma*****@webbas ica.com> wrote in message
news:bn******** ****@ID-122517.news.uni-berlin.de...
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:
ma*****@webbasi ca.com


Jul 20 '05 #4
I think I can see what you're on about - you want to preload the same images
x amount of times ?

Lets look at the external .js file contents :

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];}}
At the moment you have an event to call the javascript :

<body onload="MM_prel oadimages('/images/image1.jpg','/images/image2.jpg')">

the event is the onload event

but a function does not need an event to run - if you just placed

MM_preloadimage s('/images/image1.jpg','/images/image2.jpg')

within the <script> tags, the function would also run just the same - it
would also run the same if it were also in an external file

eg

<script src="MM_Preload _Function.js">< script> // has the preload function in
it
<script src="MM_Preload _Function_Call. js"><script> // has the function call
in it

remember that when functions aren't called by events, thye will run as page
is loaded, therefore you will need to load the function b4 you can call it.
HTH

Simon Christie

PS - its Simon not Simone


"MALdito" <ma*****@webbas ica.com> wrote in message
news:bn******** ****@ID-122517.news.uni-berlin.de...
Well thanks Simone!!

I understood everything you said, and now I will try to explain exactly what I need...

I need to "put" the calling functions in a linked file .. maybe even in the js itself. Actually, the first part (the js) can stay in the html. But the
call functions has be external and then linked. Why? cause then, if i wanna add more sections to my site, the process will become really easier .. since all my layout is beeing done with ssi and linked stuff..

So, what i need is (in lesser words) .. how to put the calling functions
(MM_preloadimag es) in a remote file? and for that matter .. how to should
the remote js be? just copy and paste the js i have in the html right now,
and name it whatever.js ? using the same syntax??

thanks a lot for all the help

ps: to the pointedears guy .. thanks, your pointless typing is what made
simone help me ..
"steve stevo" <st***@stevoste ve.fsnet.co.uk> escribió en el mensaje
news:bn******** **@newsg1.svr.p ol.co.uk...
You will need to create a .js file with the function in it

eg whatever.js

Then attach the .js file to whichever pages / files you want to use it

<script src="whatever.j s"></script>

then all you need to do is call the function by using

MM_preloadimage s('im/im1.jpg','im/im2.jpg')

etc - the function will automatically detect how many images you are

trying
to preload,

unfortunately there are too many people like Thomas Lahn, too eager to
brag - to slow to assist.

Hope this helps

Simon Christie
"MALdito" <ma*****@webbas ica.com> wrote in message
news:bn******** ****@ID-122517.news.uni-berlin.de...
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:
ma*****@webbasi ca.com



Jul 20 '05 #5
Sorry about the name ..

Simon, so it would be ok if i put the js into an external file PLUS the
function-call? what would be the syntax?

MM_preloadimage s('/images/image1.jpg','/images/image2.jpg')

no ; or } at the end??

thanks!

"steve stevo" <st***@stevoste ve.fsnet.co.uk> escribió en el mensaje
news:bn******** **@news7.svr.po l.co.uk...
I think I can see what you're on about - you want to preload the same images x amount of times ?

Lets look at the external .js file contents :

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];}}
At the moment you have an event to call the javascript :

<body onload="MM_prel oadimages('/images/image1.jpg','/images/image2.jpg')">
the event is the onload event

but a function does not need an event to run - if you just placed

MM_preloadimage s('/images/image1.jpg','/images/image2.jpg')

within the <script> tags, the function would also run just the same - it
would also run the same if it were also in an external file

eg

<script src="MM_Preload _Function.js">< script> // has the preload function in it
<script src="MM_Preload _Function_Call. js"><script> // has the function call in it

remember that when functions aren't called by events, thye will run as page is loaded, therefore you will need to load the function b4 you can call it.

HTH

Simon Christie

PS - its Simon not Simone


"MALdito" <ma*****@webbas ica.com> wrote in message
news:bn******** ****@ID-122517.news.uni-berlin.de...
Well thanks Simone!!

I understood everything you said, and now I will try to explain exactly

what
I need...

I need to "put" the calling functions in a linked file .. maybe even in

the
js itself. Actually, the first part (the js) can stay in the html. But the
call functions has be external and then linked. Why? cause then, if i

wanna
add more sections to my site, the process will become really easier ..

since
all my layout is beeing done with ssi and linked stuff..

So, what i need is (in lesser words) .. how to put the calling functions
(MM_preloadimag es) in a remote file? and for that matter .. how to should the remote js be? just copy and paste the js i have in the html right now, and name it whatever.js ? using the same syntax??

thanks a lot for all the help

ps: to the pointedears guy .. thanks, your pointless typing is what made
simone help me ..
"steve stevo" <st***@stevoste ve.fsnet.co.uk> escribió en el mensaje
news:bn******** **@newsg1.svr.p ol.co.uk...
You will need to create a .js file with the function in it

eg whatever.js

Then attach the .js file to whichever pages / files you want to use it

<script src="whatever.j s"></script>

then all you need to do is call the function by using

MM_preloadimage s('im/im1.jpg','im/im2.jpg')

etc - the function will automatically detect how many images you are

trying
to preload,

unfortunately there are too many people like Thomas Lahn, too eager to
brag - to slow to assist.

Hope this helps

Simon Christie
"MALdito" <ma*****@webbas ica.com> wrote in message
news:bn******** ****@ID-122517.news.uni-berlin.de...
> 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:
> ma*****@webbasi ca.com
>
>



Jul 20 '05 #6
The best way is to try and see

the correct syntax would be

MM_preloadimage s('/images/image1.jpg','/images/image2.jpg');

the ; signifies end of statement
the curly brackets are used to define segments of a function

eg
function test(){
if(true){
alert("yippee") ;
}else{
alert("boohoo") ;
}
}

Hope this helps

Simon Christie
"MALdito" <ma*****@webbas ica.com> wrote in message
news:bn******** ****@ID-122517.news.uni-berlin.de...
Sorry about the name ..

Simon, so it would be ok if i put the js into an external file PLUS the
function-call? what would be the syntax?

MM_preloadimage s('/images/image1.jpg','/images/image2.jpg')

no ; or } at the end??

thanks!

"steve stevo" <st***@stevoste ve.fsnet.co.uk> escribió en el mensaje
news:bn******** **@news7.svr.po l.co.uk...
I think I can see what you're on about - you want to preload the same images
x amount of times ?

Lets look at the external .js file contents :

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];}}
At the moment you have an event to call the javascript :

<body

onload="MM_prel oadimages('/images/image1.jpg','/images/image2.jpg')">

the event is the onload event

but a function does not need an event to run - if you just placed

MM_preloadimage s('/images/image1.jpg','/images/image2.jpg')

within the <script> tags, the function would also run just the same - it
would also run the same if it were also in an external file

eg

<script src="MM_Preload _Function.js">< script> // has the preload function in
it
<script src="MM_Preload _Function_Call. js"><script> // has the function

call
in it

remember that when functions aren't called by events, thye will run as

page
is loaded, therefore you will need to load the function b4 you can call

it.


HTH

Simon Christie

PS - its Simon not Simone


"MALdito" <ma*****@webbas ica.com> wrote in message
news:bn******** ****@ID-122517.news.uni-berlin.de...
Well thanks Simone!!

I understood everything you said, and now I will try to explain exactly
what
I need...

I need to "put" the calling functions in a linked file .. maybe even
in the
js itself. Actually, the first part (the js) can stay in the html. But

the call functions has be external and then linked. Why? cause then, if i

wanna
add more sections to my site, the process will become really easier ..

since
all my layout is beeing done with ssi and linked stuff..

So, what i need is (in lesser words) .. how to put the calling
functions (MM_preloadimag es) in a remote file? and for that matter .. how to

should the remote js be? just copy and paste the js i have in the html right now, and name it whatever.js ? using the same syntax??

thanks a lot for all the help

ps: to the pointedears guy .. thanks, your pointless typing is what made simone help me ..
"steve stevo" <st***@stevoste ve.fsnet.co.uk> escribió en el mensaje
news:bn******** **@newsg1.svr.p ol.co.uk...
> You will need to create a .js file with the function in it
>
> eg whatever.js
>
> Then attach the .js file to whichever pages / files you want to use it >
> <script src="whatever.j s"></script>
>
> then all you need to do is call the function by using
>
> MM_preloadimage s('im/im1.jpg','im/im2.jpg')
>
> etc - the function will automatically detect how many images you are
trying
> to preload,
>
> unfortunately there are too many people like Thomas Lahn, too eager to > brag - to slow to assist.
>
> Hope this helps
>
> Simon Christie
>
>
> "MALdito" <ma*****@webbas ica.com> wrote in message
> news:bn******** ****@ID-122517.news.uni-berlin.de...
> > 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:
> > ma*****@webbasi ca.com
> >
> >
>
>



Jul 20 '05 #7
well ... you did it!

thanks a lot

m.
"steve stevo" <st***@stevoste ve.fsnet.co.uk> escribió en el mensaje
news:bn******** **@newsg1.svr.p ol.co.uk...
The best way is to try and see

the correct syntax would be

MM_preloadimage s('/images/image1.jpg','/images/image2.jpg');

the ; signifies end of statement
the curly brackets are used to define segments of a function

eg
function test(){
if(true){
alert("yippee") ;
}else{
alert("boohoo") ;
}
}

Hope this helps

Simon Christie
"MALdito" <ma*****@webbas ica.com> wrote in message
news:bn******** ****@ID-122517.news.uni-berlin.de...
Sorry about the name ..

Simon, so it would be ok if i put the js into an external file PLUS the
function-call? what would be the syntax?

MM_preloadimage s('/images/image1.jpg','/images/image2.jpg')

no ; or } at the end??

thanks!

"steve stevo" <st***@stevoste ve.fsnet.co.uk> escribió en el mensaje
news:bn******** **@news7.svr.po l.co.uk...
I think I can see what you're on about - you want to preload the same images
x amount of times ?

Lets look at the external .js file contents :

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];}}
At the moment you have an event to call the javascript :

<body

onload="MM_prel oadimages('/images/image1.jpg','/images/image2.jpg')">

the event is the onload event

but a function does not need an event to run - if you just placed

MM_preloadimage s('/images/image1.jpg','/images/image2.jpg')

within the <script> tags, the function would also run just the same - it would also run the same if it were also in an external file

eg

<script src="MM_Preload _Function.js">< script> // has the preload function
in
it
<script src="MM_Preload _Function_Call. js"><script> // has the function

call
in it

remember that when functions aren't called by events, thye will run as

page
is loaded, therefore you will need to load the function b4 you can call
it.


HTH

Simon Christie

PS - its Simon not Simone


"MALdito" <ma*****@webbas ica.com> wrote in message
news:bn******** ****@ID-122517.news.uni-berlin.de...
> Well thanks Simone!!
>
> I understood everything you said, and now I will try to explain exactly what
> I need...
>
> I need to "put" the calling functions in a linked file .. maybe even in the
> js itself. Actually, the first part (the js) can stay in the html.
But the
> call functions has be external and then linked. Why? cause then, if
i wanna
> add more sections to my site, the process will become really easier ... since
> all my layout is beeing done with ssi and linked stuff..
>
> So, what i need is (in lesser words) .. how to put the calling

functions > (MM_preloadimag es) in a remote file? and for that matter .. how to

should
> the remote js be? just copy and paste the js i have in the html right now,
> and name it whatever.js ? using the same syntax??
>
> thanks a lot for all the help
>
> ps: to the pointedears guy .. thanks, your pointless typing is what made > simone help me ..
>
>
> "steve stevo" <st***@stevoste ve.fsnet.co.uk> escribió en el mensaje
> news:bn******** **@newsg1.svr.p ol.co.uk...
> > You will need to create a .js file with the function in it
> >
> > eg whatever.js
> >
> > Then attach the .js file to whichever pages / files you want to
use it > >
> > <script src="whatever.j s"></script>
> >
> > then all you need to do is call the function by using
> >
> > MM_preloadimage s('im/im1.jpg','im/im2.jpg')
> >
> > etc - the function will automatically detect how many images you
are > trying
> > to preload,
> >
> > unfortunately there are too many people like Thomas Lahn, too eager
to > > brag - to slow to assist.
> >
> > Hope this helps
> >
> > Simon Christie
> >
> >
> > "MALdito" <ma*****@webbas ica.com> wrote in message
> > news:bn******** ****@ID-122517.news.uni-berlin.de...
> > > 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:
> > > ma*****@webbasi ca.com
> > >
> > >
> >
> >
>
>



Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1729
by: Bob | last post by:
I usually use some "pre-load" code in my pages to preload graphics that will be swapped. But, I'm thinking that rather than the long, repetitive, once, for each graphic hardcoded stuff like this: var bb_off = new Image(); bb_off.src = "images/bb_off.jpg"; ....that I could have an array where I just listed the names of the graphics, a loop, and code in the loop that cycles through each entry in the array to create and pre-load the "on"...
2
2957
by: jmhill | last post by:
Has anyone else had this issue? Basically, the preload of images for a rollover effect for the navigation is really really slow when using IE 6.0 but when i view the site using Netscape, it's fast like it should be(no lag!) My problem is that since 96% of users use IE, i need to figure a way to fix this. Below is the javascript currently being used. The arguments are passed in before the script is called. MM_preloadImages(
2
3380
by: Albert Spencil | last post by:
I have tried several preload scripts found here; plus, some of my own. The only thing that works is the unsophisticated loading of those tiny images. The download consist of 100+ images amounting to 50+mb; and, normally completes in less than 1 minute without preload (using DSL). The preload terminates after 6 or 7 images and seems to time-out in the middle of an image. A reload will download a few more, etc. I have used the <body...
1
3377
by: Stacey | last post by:
Hi, I'm hoping for a bit of advise-- I have a (relatively, from the point-of-view of this dilettante) complex script that attempts to preload certain images in order to trigger one of a series of six slideshows (rather than try to articulate, have a look here): http://www.slack.net/~stacey/stestbed/homejs.jsp Clicking any of the six blocks of text along the sides will begin a loop of the corresponding slideshow.
1
2262
by: Peter Fastré | last post by:
Hello The javascript preload function I always used, is causing problems with the latest version of gecko-browsers. Never had any problems with it though. Maybe there's something wrong? http://pfastre.no-ip.com/arg/ http://pfastre.no-ip.com/lunatis/ http://pfastre.no-ip.com/gsm/ ....
4
1723
by: shapper | last post by:
Hello, I think to preload an image I should us something like: img = new Image(); img.src = 'images/img.jpg'; Could someone tell me how to create a loop which would preload a list of images? Something like:
3
1714
by: blobb | last post by:
hi all, i have 50 hidden div layers with images insided, each is appr. 200kb big. i use this script to show/hide them, when neccesary: function init() { IE = (document.all) NC = (document.layers) Opera = (document.getElementById)
2
1341
by: matt9807 | last post by:
The following is a script that I have written that preloads images for an image gallery. The problem is that the images only preload in Safari, other browsers load each image when it is called. Any ideas? imgSeries = new Array(); curImg = ''; function loadkill() { document.getElementById('loadingtxt').style.display = "none"; document.getElementById('imgone').src = imgSeries; document.getElementById('imgtwo').src = imgSeries; }
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8513
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7352
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.