Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Andigo #1
Changing Text/iframe content with Rollover
Hello,
I'm using a simple JavaScript to change a display of images on rollover, like
a script you'd use for navbar buttons, but 6 images at once. It works fine.
Now I'd like to add code to change some text on the page, as well. I've placed
the text in a series of external html files, and have been trying to load them
using a variety of combinations of .src, .location. location.href etc. as
you'll see in the code below. Haven't been able to find the right syntax.
I can change the content in the iframe on click, but we'd like it to change
when the images change - on rollover.
Is there a way to change the contents of the iFrame on rollover rather than on
click? Or is there a better strategy than using an iframe.
Code snippet below, including commented out attempts that didn't work.
Thanks in advance,
both "name" and "id" are set to "detailsFrame" in the iframe tag.
function pixAct(pixName){
document.src = pix1off.src;
document.src = pix2off.src;
document.src = pix3off.src;
document.src = pix4off.src;
document.src = pix5off.src;
document.src = pix6off.src;
document.src = eval(pixName + "on.src");
//document.frame.src = "credits01.htm";
//document."detailsFrame".location = "credits01.htm";
//document.frame.location = "credits01.htm";
//document."detailsFrame".location.href = "credits01.htm";
//document..src = "images/credits/Tree_tint.jpg";
//document..src = "credits01.htm";
//document..write() = "Please work";
}
Andigo Guest
-
iFrame Blank Content Error
I am creating the navigation for a website using flex, i have the menu (by itself) functioning. I am using an iFrame component, borrowed from this... -
changing dynamic text content on attachMovie
I have a MC that is brought on stage via attachMovie. The MC has a dynamic text that is defined on the attach action. My problem is I would like to... -
Persistent 'nonsecure content' message when loading a file into an IFRAME element
Guys and gals, I am having a problem with an IFRAME that is embedded into an ASPX page (ASP.NET application). The IFRAME is originally empty... -
changing a text members text content with lingo
Is there a way of setting the content of a text member through lingo, specifying where there should be Carriage Return. I have a director movie... -
Changing IFRAME Source Dynamically from inner script
I have an HTML document with two <IFRAME> tags <iframe src='Page1.htm' name='frPage1' width='241' height='322' </iframe> <iframe src='Page2.htm'... -
akribie #2
Re: Changing Text/iframe content with Rollover
[url]http://www.insidedhtml.com/tips/contents/ts06/page2.asp[/url]
and
[url]http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm[/url]
may shed some light
akribie Guest



Reply With Quote

