Reply
I'm getting a expected ';' error
Old 08-19-2005, 09:35 PM I'm getting a expected ';' error
jazee's Avatar
Super Talker

Posts: 122
Location: Westminster, CO / Denver
I am getting and expected ';' error on lines 14,28 witch are the start of each function lines. Can anyone please tell me what is wrong and why I am getting these errors. The code is attached.

Code:
<script type="text/javascript" language="javascript">
if (document.all) {
	docObj = "document.all."
	styleObj = ".style"
}
else {
	docObj = "document."
	styleObj = ""
}

function popUp(evt,currElem) {
	popUpWin = eval(docObj + currElem + styleObj)
	
	if (document.all) {
		popUpWin.top = parseInt(evt.y)+2
		popUpWin.left = Math.max(2, parseInt(evt.x)-125)
	}
	else {
		popUpWin.top = parseInt(evt.pageY)+2
		popUpWin.left = Math.max(2, parseInt(evt.pageX)-125)
	}
	popUpWin.visibility = "visible"
}

function popDown(currElem) {
	popUpWin = eval(docObj + currElem + styleObj)
	popUpWin.visibility = "hidden"
}
</script>
jazee is offline
Reply With Quote
View Public Profile Visit jazee's homepage!
 
When You Register, These Ads Go Away!
Old 08-19-2005, 10:02 PM
jazee's Avatar
Super Talker

Posts: 122
Location: Westminster, CO / Denver
Ok Never Mind. I found the problem. It was nothing in the javascript. It was all in my code on each of the span tags.
jazee is offline
Reply With Quote
View Public Profile Visit jazee's homepage!
 
Reply     « Reply to I'm getting a expected ';' error
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12851 seconds with 12 queries