Why wont this script work ?

View previous topic View next topic Go down

Sunfish
Sunfish
Member
Member
Forum Posts : 7
Member Since : 2012-02-20

PostSunfish 4/3/2012, 6:26 pm

Everything seems fine except it won't accept my image links.If someone could help me fix this I would love it. confused

Thanks in advance,
Bob.

Code:
<!-- flooble sidebar menu start -->
<script language="javascript">
// Floating Sidebar Menu Script from Flooble.com
// For more information, visit
//   http://www.flooble.com/scripts/sidebar.php
// Copyright 2003 Animus Pactum Consulting inc.
//---------------------------------------------------------
    var ie = false;
    var open = true;
    var oldwidth = -1;
    if (document.all) { ie = true; }

    function getObj(id) {
        if (ie) { return document.all[id]; }
        else {    return document.getElementById(id);    }
    }
   
    function toggleSidebar() {
        var sidebar = getObj('sidebarcontents');
        var menu = getObj('sidebarmenu');
        var arrow = getObj('sidearrow');
        if (open) {
           var sidec = getObj('sidebar');           
            var h = sidec.scrollHeight;
            if (oldwidth < 0) {
               oldwidth = sidebar.scrollWidth;
            }
            sidebar.style.display = 'none';
            td = getObj('sidebartd');
            td.style.width = 0;       
            arrow.innerHTML = '>';
            //alert(h + ' - ' + sidec.scrollHeight);
            sidec.style.height = h;
            open = false;
        } else {
            sidebar.style.display = 'block';
            sidebar.style.width = oldwidth;
            arrow.innerHTML = '<';
            open = true;
        }
        getObj('focuser').focus();
       
    }   
   
    function setSidebarTop() {
        //alert('hoy');
        var sidec = getObj('sidebar');
        sidec.style.top = 10 + document.body.scrollTop;
        setTimeout('setSidebarTop()', 10);
    }
   
    setTimeout('setSidebarTop();', 2000);
   
</script>
   <table border="0" cellspacing="0" cellpadding="3" id="sidebar" bgcolor="#000000"
        style="border-top: 1px solid #000078; border-bottom: 1px solid #000078;
            position:absolute; z-index:100; left:0px; top:10px;
            font-family:Verdana;">
    <tr>
    <td valign="top" id="sidebartd">
        <div id="sidebarcontents" style="padding: 5px;">
           <a href=\"http://www.youtube.com/user/AllFishWorld  \" target=\"_blank\"><img src=\"http://i1214.photobucket.com/albums/cc494/Bobwats/Banners/youtube_2.png\" border=\"0\" /></a>

<a href=\"https://twitter.com/Allfishworld\" target=\"_blank\"><img src=\"http://i1214.photobucket.com/albums/cc494/Bobwats/Banners/twitter-1.png\" border=\"0\" /></a>

<a href=\"http://www.facebook.com/profile.php?id=100003624390065&sk=wall\" target=\"_blank\"><img src=\"http://i1214.photobucket.com/albums/cc494/Bobwats/Banners/facebook1.png\" border=\"0\" /></a>
        </div>
    </td>
    <td valign="top" align="center" bgcolor="#000078" id="menucontainer">
        <a href="javascript:void(0);" id="sidebarmenu" onClick="toggleSidebar();"
            style="color:#FFFFFF; text-decoration:none;font-weight:bold;  font-family:Helvetica;"><span
id="sidearrow"><</span><br>S<BR>O<BR>C<BR>I<BR>A<BR>L<BR> <BR>L<BR>I<BR>N<BR>K<BR>S</a><br>
        <a href="javascript:void(0);" style="color: #000078; heigh:1px;"
            id="focuser"> </a>
    </td>
    </tr>
</table><SCRIPT LANGUAGE="Javascript">toggleSidebar();</SCRIPT>
<noscript><a href="http://www.flooble.com/scripts/sidebar.php>free javascript sidebar menu by flooble</a> | Read free <a href="http://perplexus.info/">brainteasers</a>
</noscript>
<!-- flooble sidebar menu end -->
LGforum
LGforum
Moderator
Forum Posts : 77
Member Since : 2011-11-12

PostLGforum 6/3/2012, 12:26 pm

Why are you putting backslashes infront of all the quote marks in the HTML?
Remove them, and things should work.
Sunfish
Sunfish
Member
Member
Forum Posts : 7
Member Since : 2012-02-20

PostSunfish 6/3/2012, 2:47 pm

I didn't, and did not catch it either. Their generator must do that.
Works fine now Thanks.
Mike
Mike
Administrator
Forum Posts : 446
Member Since : 2011-10-28
http://www.codinghelp.org

PostMike 6/3/2012, 4:28 pm

Solved, LOCKED!
Sponsored content

PostSponsored content

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum