Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
hand on mouseover of iframe link
Old 12-26-2010, 09:21 AM hand on mouseover of iframe link
webmaster flex's Avatar
Extreme Talker

Posts: 160
Name: Webmaster flex
Trades: 0
hi, ive tried several times to do this but failed. on the page unitedkarategreatbritain.com/Videos.html when you mouseover the iframe links that say "click here to show/hide video" you get the text highlighter not the regular hand pointer which you get on mouseover of a link.

heres the code im using:

Code:
<script type="text/javascript">
var stat;
var delay=2000; //delay in milliseconds
function show(id){
var oIfr = document.getElementById(id);
oIfr.style.display=(oIfr.style.display=='block')?'none':'block';
}
function hide(id){
stat = setTimeout('show("'+id+'")',delay)
}
function getId(obj){
var allIfr = document.getElementsByTagName('iframe');
for(var i=0;i<allIfr.length;i++){
var dIfr = allIfr[i].contentWindow.document.documentElement;
if(obj==dIfr){hide(allIfr[i].id);break}
}
}
onload=function(){
var allIfr = document.getElementsByTagName('iframe');
for(var i=0;i<allIfr.length;i++){
var dIfr = allIfr[i].contentWindow.document.documentElement;
dIfr.onmouseover = function(){parent.clearTimeout(parent.stat)}
dIfr.onmouseout = function(){parent.getId(this)}
}
}

</script>
Code:
<span onclick="show('ifr0')" onclick="hide('ifr0')">click here to show/hide video | </span> 

<br />
<iframe src="http://www.youtube.com/embed/dZOEa9sbshI?rel=0" id="ifr0" style="display:none" width=640" height="385" frameborder="0" scrolling="no"></iframe>
help appriciated, regards

Last edited by chrishirst; 12-26-2010 at 09:25 AM..
webmaster flex is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-26-2010, 09:26 AM Re: hand on mouseover of iframe link
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
CSS


Code:
cursor: pointer;
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-26-2010, 09:51 AM Re: hand on mouseover of iframe link
webmaster flex's Avatar
Extreme Talker

Posts: 160
Name: Webmaster flex
Trades: 0
ahh ive done it. i just simply edited


<span onclick="show('ifr0')" onclick="hide('ifr0')">click here to show/hide video | </span>

to

<p><span onclick="show('ifr0')" onclick="hide('ifr0')">click here to show/hide video | </span></p>
webmaster flex is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to hand on mouseover of iframe link
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.46084 seconds with 12 queries