News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Parse erroe on my code - Help Please

Started by tmlfever, November 28, 2016, 01:04:02 AM

Previous topic - Next topic

tmlfever

Can anyone tell me why I get Parse errors on this code please?


<script language="JavaScript1.2">
// DO NOT DELETEvery Important Drop Box for new viewers DO NOT DELETE
// Drop-in content box- By Dynamic Drive
// For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
// This credit MUST stay intact for use

var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var calunits=document.layers? "" : "px"

var bouncelimit=64 //(must be divisible by 8)
var direction="up"

function initbox(){
if (!dom&&!ie&&!ns4)
return
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin;
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset;
crossobj.top=scroll_top-250+calunits;
crossobj.visibility=(dom||ie)? "visible" : "show";
dropstart=setInterval("dropin()",50);
}

function dropin(){;
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset;
if (parseInt(crossobj.top)<100+scroll_top);
crossobj.top=parseInt(crossobj.top)+40+calunits;
else{;
clearInterval(dropstart);
bouncestart=setInterval("bouncein()",50);
}
}

function bouncein(){
crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)
}
}

function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"
}

function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}


function get_cookie(Name) {
var search = Name + "="
var returnvalue = ""
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function dropornot(){
if (get_cookie("droppedin")==""){
window.onload=initbox
document.cookie="droppedin=yes"
}
}
dropornot()
</script>


<div id="dropin" style="position:absolute;visibility:hidden;left:400px;top:0px;width:400px;height:102px;background-color:#F5F5F5">


<table border="0" width="100%" cellspacing="0" cellpadding="2" height="100%" bgcolor="#000000">
<tr>
<td width="100%">
<table border="0" width="100%" cellspacing="0" cellpadding="2" bgcolor="#c0c0c0">
<tr>
<td width="100%" bgcolor="#F3F3F3">
<p><font face="Arial" size="4"><b><a style="color:black" href="http://www.tmlforum.net/index.php"><center><p>Test</p>visit<p></p></center></a></b></font>
<center><a href="http://www.tmlforum.net/index.php" target="_blank">www.TMLForum.com </a></center></p>
<center>Test2</center>
<a href="http://www.tmlforum.net/index.php" target="_blank"><centerTest3</center></a>
<div align="right"><a href="#" onclick="dismissbox();return false">Close This Box</a>&nbsp;&nbsp;<p></p></div>


</td>
</tr>
</table>
</td>
</tr>
</table>

</div>

<script language="JavaScript">
<!--Script courtesy of http://www.web-source.net - Your Guide to Professional Web Site Design and Development
window.open('http://www.tmlforum.com','windowname','
height='320,width=320,scrollbars,resizable');
// -->
</script>


"Every time you wake up, ask yourself, "What good am I going to do today?", remember that when the sun goes down at sunset, it will take a part of your life with it."

I've seen the Leaf jersey everywhere from Kabul to Tonga. I've never seen it in a Stanley Cup final.

Kindred

#1
At the very end... the single quotes need to be escaped if you are using that code within an echo statement
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: