TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

quick iframes question

Page: 1 Reply
Jul 4th 2002#56622 Report
Member since: May 21st 2002
Posts: 537
Is there any way to make a link change things in two different iframes at the same time?


for example. IN one iframe(named 'links'), I have links that open up pages in a different iframe(named 'main'). In the links iframe, I have a little boxed x that makes that iframe blank(makes the links dissapear). Besides making the links dissapear, I would also like the 'main' iframe revert back to the 'home' image.


hopefully I explained it well enough.
Reply with Quote Reply
Jul 5th 2002#56668 Report
Member since: Mar 24th 2002
Posts: 3114
Could be done in JS..

I´m not very experienced in frames when it comes to JavaScript, but I think it would be wise to put it in a function like;
function changeSomething()
{
framename.document.write("paavorules")
framename2.document.DIVname.innerHTML=""
}

...or something... I´m tired and realy drunk now, so ignore this.. Maybe it´ll give you ideas...
Reply with Quote Reply
Jul 5th 2002#56734 Report
Member since: May 21st 2002
Posts: 537
thanks
Reply with Quote Reply
Jul 10th 2002#57839 Report
Member since: Mar 18th 2001
Posts: 6632
did you ever find a way to do this, snivlem? I need to do a similar thing....
Reply with Quote Reply
Jul 10th 2002#57864 Report
Member since: Mar 18th 2001
Posts: 6632
Hey I just thought of an easy way to do this... It's the way I'm going to do it for my site.

Just have the link load one of your iFrames. Then in the page that loads into that iFrame, have an "onLoad" event that triggers another page to be loaded into your second iFrame. That way you don't really have to mess with very much complex javascript. Onload things are really easy to do in Dreamweaver, if you have that.

If that won't work for your site, then try this tutorial...

http://hotwired.lycos.com/webmonkey/97/02/index4a.html?tw=authoring
Reply with Quote Reply
Jul 11th 2002#57901 Report
Member since: May 21st 2002
Posts: 537
i gave up on the idea once he mentioned java script as I don't know that much about it.


I'll try the tutorial. thanks.
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum