![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
HI,, I've got a couple of questions about using Javasript in the <body> tag. 1) can you use "onLoad" to call more than 1 function? If so, how is this done? 2) I use DW to generate rollover images as buttons. I am trying to set up a script that would choose random buttons from a pool of button images, but not sure how I would write the random variable into the onLoad function in the body tag. Example: DW generates a function like so (onLoad="MM_preloadImages ('images/pic1.gif','images/pic2.gif', ...) to be called by "onLoad" in the body tag. If I want the randomly-generated image to be preloaded this way, I'd have to write a reference to the picture variable to be included in the MM_preloadImages function. THis is already exhausting what little cerebral matter is still functioning in my cranium. don't want to mess around with scripting the "body" tag in a document.write statement. can anyone give me any pointers for this dilemma? thanks muchly,,, Sez |
![]() |
| Thread Tools | |
| Display Modes | |
| |