473,385 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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.
Dec 15 '05 #1
1 3370
Shawn Witt said the following on 12/14/2005 9:57 PM:
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.


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.getElementById('marqueeID').innerHTML=win dow.frames['IFrameNAMEnotID'].document.title;

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Dec 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Cat Laugel | last post by:
Hello, I am redesigning my website and would like to have the text scroll within the webpage without the page itself scrolling.... if you understand what I mean... ;-) I want a very sleek look...
1
by: jdcharbonneau | last post by:
I've written a custom controll that scrolls text (marquee style) one character at a time. This works - but is too jerky looking. I'd like to make a smoother-scrolling marquee. I think the way to do...
1
by: michaaal | last post by:
Does anyone know of a JavaScript that will do a marquee type text scrolling like the one on this page... http://www.rentacoder.com The one on the above link uses the <marquee> HTML tags, and I...
3
by: Peter Williams | last post by:
Hi All, I want to write some javascript for a html page which does the following. Imagine that the page contains a table with 2 columns and 3 rows, e.g.: +---+---+ | A | B | +---+---+
7
by: Yavuz Bogazci | last post by:
i have the following problem: my customer wants to show some informations in a WinForm. He has Images and Textelements with are connected. It should look like this: scroll << - ... Image +...
1
by: sven.daems | last post by:
Hy I want to add a sort of news service to my site. I've a number of messages, wich I want to be shown in a <marquee> tag. I've found a simple scrit that generates an random message (wich I've...
56
by: Ed Jay | last post by:
I note in an Eric Meyers book that he expresses one goal of using CSS is to eliminate all <brtags. Why? -- Ed Jay (remove 'M' to respond by email)
3
by: applegreenss | last post by:
I am looking for a javascript function ( don't know what they call ths ) which will print a line of text, one letter at a time at a certain speed until the full string is printed. Can this be done...
3
by: joslyn | last post by:
1) Can anyone help me solve this problem by slowing the marquee text? 2) How to stop the marquee text when the mouse over it? Below are the following codes need to be solved: <table...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.