How can I make a new sidebox with no border or header
How can I make a new sidebox with no border or header
Install the Blank Sidebox, giving it a unique name, and style that id in the stylesheet:
#myBlankSideBox {border: none;}
#myBlankSideBoxHeading {display: none;}
#myBlankSideBoxContent {border: none;}
with whatever other properties you wish.
alright I can't even get the sidebox to show regularly..this is what I got..
PHP Code:
$content .= '<p>' . TEXT_LIVEHELP_SIDEBOX . '</p>';
$content .= '<a href="javascript:void(window.open('http://localhost/livezilla/livezilla.php','','width=600,height=550,left=0,top=0,resizable=yes,menubar=no,location=yes,status=yes,scrollbars=yes'))"><img src="http://localhost/livezilla/image.php?id=01" width="191" height="69" border="0" alt="Live Help"></a><noscript><div><a href="http://localhost/livezilla/livezilla.php" target="_blank">Start Live Help Chat</a></div></noscript><!-- http://www.LiveZilla.net Chat Button Link Code --><!-- http://www.LiveZilla.net Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script language="JavaScript" type="text/javascript">
<!--
var script = document.createElement("script");script.type="text/javascript";var src = "http://localhost/livezilla/server.php?request=track&output=jscript&nse="+Math.random();setTimeout("script.src=src;document.getElementById('livezilla_tracking').appendChild(script)",1);
// -->
</script>';
One problem is here. The ' before http is seen as terminating the text string, which then allows the // to be seen as a comment which wipes out the rest of the line.PHP Code:
$content .= '<a href="javascript:void(window.open('http://localhost/livezilla/livezilla.php','','width=600,height=550,left=0,top=0,resizable=yes,menubar=no,location=yes,status=yes,scrollbars=yes'))"><img src="http://localhost/livezilla/image.php?id=01" width="191" height="69" border="0" alt="Live Help"></a><noscript><div><a href="http://localhost/livezilla/livezilla.php" target="_blank">Start Live Help Chat</a></div></noscript><!-- http://www.LiveZilla.net Chat Button Link Code --><!-- http://www.LiveZilla.net Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script language="JavaScript" type="text/javascript">
If you need to use a single quote inside a single-quoted string, escape it like this: \' .
I don't know javascript, but the comment tags overlapping with the script tags don't look right.
The opening script tag is at the end of the $content line, in the commented section:
<script language="JavaScript" type="text/javascript">
So that is correct; you just need to escape the special characters so they get output instead of acting immediately.
PHP Code:
$content .= '<a href="javascript:void(window.open(\'http://localhost/livezilla/livezilla.php\',\'\',\'width=600,height=550,left=0,top=0,resizable=yes,menubar=no,location=yes,status=yes,scrollbars=yes\'))"><img src="http://localhost/livezilla/image.php?id=01" width="191" height="69" border="0" alt="Live Help"></a><noscript><div><a href="http://localhost/livezilla/livezilla.php" target="_blank">Start Live Help Chat</a></div></noscript><!-- http://www.LiveZilla.net Chat Button Link Code --><!-- http://www.LiveZilla.net Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script language="JavaScript" type="text/javascript">
<!--
var script = document.createElement("script");script.type="text/javascript";var src = "http://localhost/livezilla/server.php?request=track&output=jscript&nse="+Math.random();setTimeout("script.src=src;document.getElementById('livezilla_tracking').appendChild(script)",1);
// -->
</script>';
Last edited by gjh42; 22 Dec 2008 at 03:07 AM.
hmm still isn't working, I noticed this code, is commented out as well, not sure
this is what I am thinking I should do, correct me if I am wrongPHP Code:
<!-- http://www.LiveZilla.net Chat Button Link Code --><!-- http://www.LiveZilla.net Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script language="JavaScript" type="text/javascript">
PHP Code:
<!-- \' http://www.LiveZilla.net' Chat Button Link Code --><!-- \' http://www.LiveZilla.net' Tracking Code --><div id="livezilla_tracking" style="display:none"></div><script language="JavaScript" type="text/javascript">
tpl_livehelp_sidebox.zip
this is the file, it may be easier to look at than on her on the forum
Bookmarks