Forum Moderators: open
I am struggling with a problem on a webpage and I can't find a solution. Maybe someone can help.
Here's the issue:
On top of the page there is a scroller, called with this line:
<script language="JavaScript">Tscroll_init (0)</script>. Works fine.
Further down the page there is a link: <a href="store.htm" target="iframe1">Content</a>, which loads the store.htm into an iframe. Works fine too.
When I click on this link I also want to replace the scroller with another one, which would be called like this:
<script language="JavaScript">Tscroll_init (1)</script>.
Is there any way to accomplish this, either by modifying the link itself or by including an onLoad function in store.htm that changes the (0) to (1)?
Thanks a lot,
Ed
Thanks so far.
I am trying something else that might work (with your help):
I have replaced this line:<script language="JavaScript">Tscroll_init (0)</script> with this one:
<iframe name="iframe1" src="store/scroll_store.htm" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" align="left" hspace="0" vspace="0" width="552" height="83"></iframe>
When the parent page loads, the scroller src="store/scroll_store.htm" runs in the iframe1 space. So far so good.
Further down I call another page into an iframe2, works great. When I click on a link to load another page into iframe2, the newly loaded page has this onload function:
<body "onload=load();" src="store/scroll_antiques.htm" target="_parent.iframe1">, which is supposed to replace the src from store/scroll_store to store/scroll_antiques.
Does that make sense?
I don't get any js error messages but it does not work either. Can someone please help here?