Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-06-2010, 04:21 AM   PM User | #1
brennygee
New to the CF scene

 
Join Date: Sep 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
brennygee is an unknown quantity at this point
Stop Code

Help! I'm not very good with html/css or any web stuff, my friend wants a blogger for his videos that I'm currently working on.

Ive managed to create a splash page that features one video and an enter button. The only problem I am having is, one you click on 'wood + wires' it should go into the blog part of the page, which it does, but the sound of the video keeps playing.

Is there any way to make it stop? This is the blog http://brennygee.blogspot.com and this is the code I'm using for the splash page...

Please help!

<!-- Welcome page Start by http://bloggersentral.blogspot.com/ -->
<!-- HTML part -->
<div style="padding-top:0px;">
<a id="EPEntryButton" onclick="document.getElementById(&quot;HTML88&quot;).style.display=&quot;none&quot;;document.getElem entById(&quot;Text88&quot;).style.display=&quot;none&quot;"><iframe src="http://player.vimeo.com/video/14285815?byline=0&amp;portrait=0&amp;color=ffffff" width="649" height="365" frameborder="0"></iframe></a>
<a id="EPEntryButton" onclick="document.getElementById(&quot;HTML88&quot;).style.display=&quot;none&quot;;document.getElem entById(&quot;Text88&quot;).style.display=&quot;none&quot;"><img src="http://i640.photobucket.com/albums/uu121/brennygee/WWENTER3.gif" /></a>
</div>
<!-- CSS part -->
<style>
#welcome-wrapper{width:650px;margin:0 auto;height:0px;text-align:center;}
/* welcome message widget */
#Text88, #EPEntryButton, #EPGrab {position:relative;z-index:100;top:-55px;}
#Text88 {background-color:#fff;border:solid 0px orange;color:#222;display:none;padding:15px;}
#HTML88 {z-index:350;display:none;}
/* DarkLayer div */
#EPDarkLayer {background-color:#000;opacity:100%;filter:alpha(opacity=100);top:0px;left:0px;z-index:500;position:fixed;}
/* Entry button */
#EPEntryButton {background-color:none;border:outset 3px none;color:#333;cursor:pointer;font: arial;font-size:25px;padding:10px;text-decoration:none;}
#EPGrab {color:white;padding-top:10px;}
</style>
<!--[if IE 6]>
<style>
#EPDarkLayer {position:absolute;}
</style>
<![endif]-->
<!-- Javascript part -->
<script type="text/javascript">
YourBlogUrl="http://brennygee.blogspot.com/"; //enter your blog url here
fromInternal=document.referrer.search(YourBlogUrl); //check come from where
getDarkLayer=document.getElementById("EPDarkLayer").style;
getText88=document.getElementById("Text88").style;
getHTML88=document.getElementById("HTML88").style;
if (fromInternal == -1)
{ //if visitor comes from external page
getDarkLayer.width=screen.availWidth+"px"; //set DarkLayer width
getDarkLayer.height=screen.availHeight*2+"px"; //set DarkLayer height
getHTML88.display="block"; //show DarkLayer
getText88.display="block"; //show message
}
else
{ //if visitor comes from internal page
getHTML88.display="none"; //hide HTML gadget
getText88.display="none"; //hide message
}
</script>
<!-- Welcome page End -->

Last edited by brennygee; 09-06-2010 at 04:23 AM..
brennygee is offline   Reply With Quote
Old 09-06-2010, 04:30 AM   PM User | #2
gizmo1650
Regular Coder

 
Join Date: Apr 2010
Posts: 163
Thanks: 3
Thanked 25 Times in 25 Posts
gizmo1650 is on a distinguished road
remove the player when the user clicks on the link.
modify the tag IDed EPEntryButton to
Code:
<a id="EPEntryButton" onclick="document.getElementById(&quot;HTML88&quot;).style.display=&quot;none&quot;;document.getElementById(&quot;Text88&quot;).style.display=&quot;none&quot;foo=document.getElementById('EPDarkLayer');foo.parentNode.removeChild(foo)">
gizmo1650 is offline   Reply With Quote
Old 09-06-2010, 04:59 AM   PM User | #3
brennygee
New to the CF scene

 
Join Date: Sep 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
brennygee is an unknown quantity at this point
Um... where or what do I replace?

Thank you soooooo much for your help!
brennygee is offline   Reply With Quote
Old 09-06-2010, 05:31 AM   PM User | #4
brennygee
New to the CF scene

 
Join Date: Sep 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
brennygee is an unknown quantity at this point
So I've tried placing and replacing this code. Either the player disappears or "wood + wires" disappears... and I kind of need both. What am I doing wrong???

Please help. I may throw my computer out the window soon.
brennygee is offline   Reply With Quote
Reply

Bookmarks

Tags
blog, video

Jump To Top of Thread


Thread Tools
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

Forum Jump


All times are GMT +1. The time now is 05:13 PM.


Advertisement
Log in to turn off these ads.