Chatbox

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Why wont this script work ? on 4/3/2012, 9:26 pm

Sunfish

avatar

Member
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://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>
        </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 -->

View user profile

2 Re: Why wont this script work ? on 6/3/2012, 3:26 pm

LGforum

avatar

Moderator
Why are you putting backslashes infront of all the quote marks in the HTML?
Remove them, and things should work.

View user profile

3 Re: Why wont this script work ? on 6/3/2012, 5:47 pm

Sunfish

avatar

Member
I didn't, and did not catch it either. Their generator must do that.
Works fine now Thanks.

View user profile

4 Re: Why wont this script work ? on 6/3/2012, 7:28 pm

Drogba921

avatar

Administrator
Solved, LOCKED!

View user profile http://www.codinghelp.org

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

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