Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Stop Code

  1. #1
    New to the CF scene
    Join Date
    Sep 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Regular Coder
    Join Date
    Apr 2010
    Posts
    163
    Thanks
    3
    Thanked 25 Times in 25 Posts
    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)">

  • #3
    New to the CF scene
    Join Date
    Sep 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Um... where or what do I replace?

    Thank you soooooo much for your help!

  • #4
    New to the CF scene
    Join Date
    Sep 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •