Change text in marquee

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Shawn Witt

    Change text in marquee

    I hope someone can help me with this situation...


    I have a web page with an Iframe. When a link is clicked outside the
    Iframe, the src changes. There is also a marquee outside the Iframe.

    What I need to do is have the text that scrolls in the marquee change to the
    title of the new src page when the link is clicked and the marquee restarts
    scrolling.

    In other words... When the "Page 1" link is clicked, "Page 1.htm" that has
    a title of "Blue" loads in the Iframe and the marquee scrolls "Blue" accross
    the area outside the Iframe.

    Sorry if this isn't too clear. I'm a bit of a newby at this.


  • Randy Webb

    #2
    Re: Change text in marquee

    Shawn Witt said the following on 12/14/2005 9:57 PM:[color=blue]
    > I hope someone can help me with this situation...
    >
    >
    > I have a web page with an Iframe. When a link is clicked outside the
    > Iframe, the src changes. There is also a marquee outside the Iframe.
    >
    > What I need to do is have the text that scrolls in the marquee change to the
    > title of the new src page when the link is clicked and the marquee restarts
    > scrolling.
    >
    > In other words... When the "Page 1" link is clicked, "Page 1.htm" that has
    > a title of "Blue" loads in the Iframe and the marquee scrolls "Blue" accross
    > the area outside the Iframe.
    >
    > Sorry if this isn't too clear. I'm a bit of a newby at this.[/color]

    Hmmm. You can only do that if the pages in the IFrame will always be
    from the same domain as the page containing the IFrame element.

    From the main page:

    document.getEle mentById('marqu eeID').innerHTM L=window.frames['IFrameNAMEnotI D'].document.title ;

    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
    Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

    Comment

    Working...