Why wont this script work ?

View previous topic View next topic Go down

Forum Posts : 7
Member Since : 2012-02-20
View user profile

PostSunfish on 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,

<!-- 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;
    function setSidebarTop() {
        var sidec = getObj('sidebar');
        sidec.style.top = 10 + document.body.scrollTop;
        setTimeout('setSidebarTop()', 10);
    setTimeout('setSidebarTop();', 2000);
   <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;
    <td valign="top" id="sidebartd">
        <div id="sidebarcontents" style="padding: 5px;">
           <a href=\"http://www.youtube.com/user/AllFishWorld  \" target=\"_blank\"><img src=\"http://illiweb.com/fa/pbucket.gif\" border=\"0\" /></a>

<a href=\"https://twitter.com/Allfishworld\" target=\"_blank\"><img src=\"http://illiweb.com/fa/pbucket.gif\" border=\"0\" /></a>

<a href=\"http://www.facebook.com/profile.php?id=100003624390065&sk=wall\" target=\"_blank\"><img src=\"http://illiweb.com/fa/pbucket.gif\" border=\"0\" /></a>
    <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>
</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>
<!-- flooble sidebar menu end -->
Forum Posts : 77
Member Since : 2011-11-12
View user profile

PostLGforum on 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.
Forum Posts : 7
Member Since : 2012-02-20
View user profile

PostSunfish on 6/3/2012, 2:47 pm

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

PostMike on 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