TriAdX Posted March 1, 2007 Share Posted March 1, 2007 What I want to do is click a link to open a new window.In my original window be able to roll over mulitple links or images and make the content in my popup change.its a basic rollover but instead of the link changing i want content in a child window to change.any help? or any scripts? Link to comment Share on other sites More sharing options...
aspnetguy Posted March 1, 2007 Share Posted March 1, 2007 You really can't do that with actual windows but you could simulate it using divs. If you need some help getting started just let me know. Link to comment Share on other sites More sharing options...
TriAdX Posted March 2, 2007 Author Share Posted March 2, 2007 you cant name the pop up window upon opening it and then call an element or object within the named window? Link to comment Share on other sites More sharing options...
aspnetguy Posted March 2, 2007 Share Posted March 2, 2007 yes you can but how will you be able to rollover links in the main window if the popup window has focus? You would have to hde thw popup and bring the main window back to the front and that defeats your goal. You might as well close the popup each time and opena new one on each rollover.Multiple windows is a pain in the a$$ and you will find that the majority of user will have them blocked anyways. Link to comment Share on other sites More sharing options...
TriAdX Posted March 2, 2007 Author Share Posted March 2, 2007 yes you can but how will you be able to rollover links in the main window if the popup window has focus? You would have to hde thw popup and bring the main window back to the front and that defeats your goal. You might as well close the popup each time and opena new one on each rollover.Multiple windows is a pain in the a$$ and you will find that the majority of user will have them blocked anyways.I know that even if a window doesnt have focus.. the rollovers still work... I opened a window ontop of a window with basic image rollovers and made the other window have focus.. upon rolling over the back window (without focus) the rollovers still worked. Link to comment Share on other sites More sharing options...
jesh Posted March 2, 2007 Share Posted March 2, 2007 I'm not sure what, exactly, you are trying to do, but if that's the case (rollovers still work even if the window doesn't have focus) you can get a reference to the popup window like this: var wnd = window.open(url, name, features); Then, if you want to change the contents of the popup window, you can either change it's URL: wnd.location.href = "http://www.w3schools.com/"; Or, if you want to get at an element in the new window, you can go about that something like this: wnd.document.getElementById("MyElement").innerHTML = "Some new stuff."; How you fit that into your mouseovers is up to you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now