onload -->* no onload

M

marco

If i set onload in JS like :

<BODY leftmargin="0" onload="start();">

and the function for onload is like:

function
start(){if(document.getElementById){tdiv6=document.getElementById('slider');
}

the browser dos not make any automatic load, i have to click on link before
the page loads... Why ?
 
D

Dag Sunde

marco said:
If i set onload in JS like :

<BODY leftmargin="0" onload="start();">

and the function for onload is like:

function
start(){if(document.getElementById){tdiv6=document.getElementById('slider');
}

the browser dos not make any automatic load, i have to click on link
before the page loads... Why ?

Eh?
Click on what link? There is no link in your example...?

But if you think that onLoad="..." will automagically load your page,
you're wrong.

The onload event will execute/trigger when your page is fully loaded into
the browser, and rendering is done.

but you have to browser to it/load it in one way or another yourself.
 
M

marco

Eh?
Click on what link? There is no link in your example...?
***
The link is made for switching between groups (1,2,3,4) and when i start
main page nothing happens, until i click on the link. Then the slider
starts....Normal link that starts scroller.htm page.


But if you think that onLoad="..." will automagically load your page,
you're wrong.
The onload event will execute/trigger when your page is fully loaded into
the browser, and rendering is done.
but you have to browser to it/load it in one way or another yourself.
*** hmmm, this could be a bit tricky becuse i want to load slider
automaticly when the user enters the index page.
e.g.entering web adress int browser / www.test.com / enter / slider preloads
images and start himself.
Maybe i understand you wrong, but i dont get it what do you meen by "load it
yourself", becuse there must be a way to make this automaticly. Sorry if i
understand you wrong....
 
R

Robert

marco said:
***
The link is made for switching between groups (1,2,3,4) and when i start
main page nothing happens, until i click on the link. Then the slider
starts....Normal link that starts scroller.htm page.


But if you think that onLoad="..." will automagically load your page,
you're wrong.
The onload event will execute/trigger when your page is fully loaded into
the browser, and rendering is done.
but you have to browser to it/load it in one way or another yourself.
*** hmmm, this could be a bit tricky becuse i want to load slider
automaticly when the user enters the index page.
e.g.entering web adress int browser / www.test.com / enter / slider preloads
images and start himself.
Maybe i understand you wrong, but i dont get it what do you meen by "load it
yourself", becuse there must be a way to make this automaticly. Sorry if i
understand you wrong....

Whoaa. That is some confusing quoting you use.

Typing www.test.com and enter is exactly what he meant with "load it
yourself". What you want to do can be accomplished, but I think nobody
understands what your problem is, because your example does not contain
any link, slider or whatever.
 
M

marco

Whoaa. That is some confusing quoting you use.
*** :)))))). Thats good one :))).


Typing www.test.com and enter is exactly what he meant with "load it
yourself". What you want to do can be accomplished, but I think nobody
understands what your problem is, because your example does not contain
any link, slider or whatever.
*** Let me put it this way:
Top frame : links with groups ( group 1, group 2, group 3 )
Middle frame will load, depending on group link this file:
- scroller_G1.htm page
- scroller_G2.htm page
- scroller_G3.htm page

What i want to do is to start the main scroller ( G1 ) automaticly when the
user enters web adress and clicks enter.
And everything else will be loaded on groups link.

Links in the top frame are just normal links to htm page (<a
href="mov/g1/Scroller_G1.htm" target="mainFrame">Group 1</a> )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top