Wow you guys are amazing. I'm trying to understand this code but I'm just not there yet.
I made a program (an extension) for Dreamweaver that inserts some head code and a body onLoad event into a .htm document.This program also allows for the removal of the script.
I can remove the head script...
I wonder if someone knows how to do this.
I'm trying to figure out how to remove the complete event and handler -
onLoad="Bob()" as in Example 1 below - if they are the only ones in the body tag.
Or, remove "only" the handler - "Bob()" if another handler is...
Hey Idiot16,
I'm still chewing on your script to see if it will work. I looks like it would be pretty lenghty tho. I was hoping to preload the whole shabang. I will post back if it does work tho.
thanks for yours and Gregs time
Izzo
Greg, yeah I know it's confusing to understand what I'm after. I don't want the images to swap at the same time.
Imagine 20 images on a page. Using the script above I could swap them all (1 by 1) with the (Iswap) function as long as they are named the same.
nrm1
nrm2
nrm3
nrm4 etc...all the...
function PreloadImages(length, path, type) {
for(var i = 1; i<=length; i++) {
this[i]= new Image()
this[i].src= path + i + type
}
return this
}
ovr=new PreloadImages(10,'Sub_Menu_1/sub1_butovr','.gif')
nrm=new PreloadImages(10,'Sub_Menu_1/sub1_but','.gif')
ovrB=new...
function PreloadImages(length, path, type) {
for(var i = 1; i<=length; i++) {
this[i]= new Image()
this[i].src= path + i + type
}
return this
}
ovr=new PreloadImages(10,'Sub_Menu_1/sub1_butovr','.gif')
nrm=new PreloadImages(10,'Sub_Menu_1/sub1_but','.gif')
ovrB=new...
Hi Greg,
Basically I want the same functions (Iswap,Iback) to rollover 2 sets of differently named images.
The script works to rollover the first set named "sub1but,sub1butovr" but I don't know how to reference the other set sub2but,sub2ovr" without creating 2 more functions...
Hi All,
I'm trying to make an image rollover script work by using the "same" functions (Iswap) and (Iback) for 2 different variables(?) ovr,nrm and ovrB,nrmB.
The script below works for the first set-(ovr,nrm) but I need to know how to make it work for the second set-(ovrB,nrmB)as...
Hi All,
In a popup I have <body onBlur=self.close()>
Works fine but what's happening is if I click into a table on that page the
focus goes to the table therefore blurring the body and closing the window.
I'm trying to make an else/if script that will ignore the table focus or
else close the...
Is it possible to call the last function executed?
For instance a function is executed and completed. Then another function is called to execute this exact function again? not a new one.
It would act like the browser history does.
Izzo
Hi flashers
Is there a way to make a flash button work onClick to open a new window browser in Dreamweaver?
Works with onMouseOver but no onClick
Thanks
Thanks Stephen.
Yes I do need to read up on NS.
I went to your site and looked at the code.Works in IE but your page locks up in NS4.7 also.
I don't plan on nesting the div's like you have, but I guess the approach is basically the same.
What I am trying to do is just swap some images that sit...
hi all,
Does anyone know why this script would not work in Netscape4.7 with the images in <div>'s?
[A portion of the <head> script]
over=new PreloadImages(20,'nav2_images/butovr','.gif')
norm=new PreloadImages(20,'nav2_images/but','.gif')
function Iswap(num){
if(document.images)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.