Help - Search - Members - Calendar
Full Version: Swap and iframes prob
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
sabbas
Sorry for my bad english. this is my second web work and things are a little bit difficult for me, so sorry if you not understand what i want for this two situations.

First one is that I have 3 links made by 3 small images.
(e.g the links are: videos, music, pics)
These links upload 3 different .html pages in the same iframe depends on which link you click. What i want is when you make a click with mouse on the first link
e.g.(videos) i want that link to swap image with different colour. (from white to red)
I have made this with behaviour and its working but my problem is that when i make a click anywhere in the page my image in the link is restore but i want to restore only
when I' m gonna click in the other links (music and pics).

Second: if using exactly the same situation as the first one, but when i have a mouse over in the link (e.g videos) I want an image to swap inside the iframe
so the visitor can have a preview of whats inside that menu before clicking on it and load the html page inside the same iframe.
In another words something like "swap 2 html in an iframe with on mouse over in the link" :-)

I will appreciate any help
thanks..
Darin McGrew
QUOTE(sabbas @ Mar 29 2007, 12:46 AM) *
First one is that I have 3 links made by 3 small images.
(e.g the links are: videos, music, pics)
These links upload 3 different .html pages in the same iframe depends on which link you click. What i want is when you make a click with mouse on the first link
e.g.(videos) i want that link to swap image with different colour. (from white to red)
Please see the FAQ entry How do I update two frames at once?

It talks about regular frames, but the same basic principle applies to inline frames too. The short version is that you're trying to update both the frame content and the main page that has the iframe element. The easy solution is to link to a new main page, rather than just updating the inline frame.

See also the FAQ entry How do I include one file in another?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.