#1 (permalink)  
Old 03-19-2007, 10:46 AM
Registered User
 
Join Date: Mar 2007
Posts: 2
Question Changing status text for links in an iframe?

Hello,

I have 2 websites, and I show the content for one site in an iframe with the other. I wish to use onmouseover so that the status text does not display the URLs when I mouseover the links in the iframe.

How can I accomplish this?

I tried the following but it hasnt worked. The status bar still shows the link URLs.

Code:
var links = document.frames['myframe'].document.links;
for (var i=0,len=links.length; i < len; i++) {
	links[i].onmouseover = blankStatus;
	links[i].onmouseout = blankStatus;
}
return true;
}
function blankStatus() { window.status=""; return true; }
Any help is much appreciated!

Andy
Reply With Quote

  #2 (permalink)  
Old 03-19-2007, 05:29 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
Andy:

Give this a shot
HTML Code:
<a href="" onmouseover="window.status='I do not want you to see the URL!!!';return true;" onmouseout="window.status=' ';">
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Code:
         ...,,.,.,.
        /          \
__oooo__[///]--[\\\]__oooo__

Last edited by Leprakawn; 03-19-2007 at 05:33 PM.
Reply With Quote
  #3 (permalink)  
Old 03-20-2007, 10:36 AM
Registered User
 
Join Date: Mar 2007
Posts: 2
Hello,

Thanks for the response. This is a bit more complicated than I originally thought

I am promoting another website by showing their content in an Iframe, but I do not have access to the HTML to simply add onmouseover to each link.

And there are 2 levels of Iframes.

Code:
Domain A
   contains Domain B (in Iframe 1)
     which contains a table from Domain B (in Iframe 2)
A user can click on links in Iframes 1 and 2 which updates the contents in Iframes 1 and 2.

I do not want to display the status text for any links in the Iframes. Is this possible?

I made an initial attempt but seem to also run into "Access denied" errors when trying to access the DOM for Domain B in the Iframe.

Quite a conundrum. Would appreciate any assistance if it is indeed solvable

Andy
Reply With Quote
  #4 (permalink)  
Old 03-20-2007, 12:51 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,130
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
Well, can you remove the status bar from your page? Either that, or start marking your visitors' monitors with white out.
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Code:
         ...,,.,.,.
        /          \
__oooo__[///]--[\\\]__oooo__
Reply With Quote
  #5 (permalink)  
Old 03-20-2007, 01:34 PM
Deadeye's Avatar
Moderator
 
Join Date: Aug 2005
Location: San Diego, CA
Posts: 274
Send a message via MSN to Deadeye
I prefer Leppys 2nd option with the whiteout.

I dont believe there is anyway unless you had access to there code directly.
Reply With Quote
  #6 (permalink)  
Old 03-20-2007, 07:30 PM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,445
First of all, there is no way, AFAIK, to make the window.status thing work cross-browser.

Secondly, I believe there is a way to use javascript to dynamically change the way the links are written inside the iFrame, but I was unsuccessful in making it work this afternoon when I played with it for a couple minutes.

Basically, you would do something along the lines of:
Code:
var f=window.frames['MyFrame'].document.links;
var i=f.length;
while(i--){
f[i].onmouseover='window.status = "you have moused over"';
}
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
  #7 (permalink)  
Old 03-20-2007, 10:40 PM
Allen's Avatar
Administrator
 
Join Date: Dec 2001
Location: Atlanta, Georgia, USA
Posts: 1,049
interesting post - first, do they even sell whiteout anymore?

second - nice job curtiss as usual!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
scrollbar with text? seccondbest Programming and Scripting 3 11-27-2006 08:18 AM
iFrame problem SweScape Programming and Scripting 6 09-08-2006 12:05 PM
controlling the size of an image with text over it bobs world Graphics and Flash 9 02-25-2006 12:26 PM
Using Iframe in a text box lmayer Programming and Scripting 1 02-15-2005 06:18 PM


All times are GMT -5. The time now is 02:14 PM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter