473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

java script error please solve this problem

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<script
language="JavaScript"> // Expanding images script copyright Matthew
LaCerais MLacerais@osc.state.ny.us // Distributed by hypergurl http://www.hypergurl.com
// Permission to use script granted if above credits are left intact <!-- function
resizeImage(e) { if (document.layers) { //Netscape var xMousePos = e.pageX; var
xMousePosMax = window.innerWidth+window.pageXOffset; } else if (document.all)
{ // IE var xMousePos = window.event.x+document.body.scrollLeft; } else if (document.getElementById)
{//Netscape var xMousePos = e.pageX; var xMousePosMax = window.innerWidth+window.pageXOffset;
} var i = (-1 * (((xMousePos/340) - (250/340)) * ((xMousePos/340) - (250/340))))
+ 1; if (i < .4) i = .4; if (i > 2) i = 2; picture1.width=(170 * i); picture1.height=(125
* i); i = (-1 * (((xMousePos/340) - (420/340)) * ((xMousePos/340) - (420/340))))
+ 1; if (i < .4) i = .4; if (i > 2) i = 2; picture2.width=(170 * i); picture2.height=(125
* i); i = (-1 * (((xMousePos/340) - (525/340)) * ((xMousePos/340) - (525/340))))
+ 1; if (i < .4) i = .4; if (i > 2) i = 2; picture3.width=(170 * i); picture3.height=(125
* i); i = (-1 * (((xMousePos/340) - (600/340)) * ((xMousePos/340) - (600/340))))
+ 1; if (i < .4) i = .4; if (i > 2) i = 2; picture4.width=(170 * i); picture4.height=(125
* i); i = (-1 * (((xMousePos/340) - (680/340)) * ((xMousePos/340) - (680/340))))
+ 1; if (i < .4) i = .4; if (i > 2) i = 2; picture5.width=(170 * i); picture5.height=(125
* i); } function output(message) { obj = eval("text"); obj.innerHTML
= "<font size=\"6\">"+message+"</font>";
} function handleMouse() { if (document.layers) { // Netscape document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = resizeImage; } else if (document.all) { // Internet Explorer
document.onmousemove = resizeImage; } else if (document.getElementById) { // Netcsape
6 document.onmousemove = resizeImage; } } function doNothing(e) { var i = 0.4;
picture1.width=(170 * i); picture1.height=(125 * i); picture2.width=(170 * i);
picture2.height=(125 * i); picture3.width=(170 * i); picture3.height=(125 * i);
picture4.width=(170 * i); picture4.height=(125 * i); picture5.width=(170 * i);
picture5.height=(125 * i); } function ignoreMouse() { if (document.layers) { //
Netscape document.captureEvents(Event.MOUSEMOVE); document.onmousemove = doNothing;
} else if (document.all) { // Internet Explorer document.onmousemove = doNothing;
} else if (document.getElementById) { // Netcsape 6 document.onmousemove = doNothing;
} } //--> </script>


</head>

<body>

<table
width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <td colspan="4" onMouseOver="ignoreMouse()"></td>
</tr> <tr> <td width="8" height="140" valign="bottom"
onMouseOver="ignoreMouse()"> </td> <td width="142"
valign="bottom" onMouseOver="handleMouse()"></td>
<td width="889" valign="bottom" onMouseOver="handleMouse()"><nobr>
<a href="http://www.hypergurl.com" target="_blank"><img
name="picture1" src="http://bytes.com/submit/live-art-4/images/image-b1.jpg" width="68" height="50"onMouseOver="output('Palm
Tree')" onMouseOut='output("")' border="0"></a>
<a href="http://www.hypergurl.com/hosting.html" target="_blank"><img
name="picture2" src="http://bytes.com/submit/live-art-4/images/image-b2.jpg" width="68" height="50"
onMouseOver="output('Family')" onMouseOut='output("")' border="0"></a>
<a href="http://www.hypergurl.com" target="_blank"><img
name="picture3" src="http://bytes.com/submit/live-art-4/images/image-b3.jpg" width="68" height="50"onMouseOver="output('Family
1')" onMouseOut='output("")' border="0"></a>
<a href="http://www.hypergurl.com" target="_blank"><img
name="picture4" src="http://bytes.com/submit/live-art-4/images/image-b4.jpg" width="68" height="50"onMouseOver="output('Menu
Option 4')" onMouseOut='output("")' border="0"></a>
<a href="http://www.hypergurl.com" target="_blank"><img
name="picture5" src="http://bytes.com/submit/live-art-4/images/image-b1.jpg" width="68" height="50"onMouseOver="output('Menu
Option 5')" onMouseOut='output("")' border="0"></a>
</nobr></td>
<td width="3" valign="bottom"
onMouseOver="ignoreMouse()">&nbsp;</td> </tr> <tr>
<td height="10" colspan="4" onMouseOver="ignoreMouse()"></td>
</tr> </table>
<div
id="text" name="text" style="position:absolute; left:166px;
top:527px; width:665px; height:94px; z-index:1" onMouseOver="ignoreMouse()"></div>

</body>
</html>
Attached Files
File Type: zip live-art-4.zip (2.40 MB, 96 views)
Apr 11 '10 #1
1 3611
chathura86
227 100+
Please use the code tags properly in your posts, and also
it will be very helpful to post the error messages also

it seems that you have used extra line breaks, remember in
JS line breaks are considered as a end of statement. and also
// comments are also only valid for a single line. please
check and resubmit the code with the error message you get

Regards
Chathura Bamunusinghe
Apr 11 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Steven Green | last post by:
I have a java app at work I used when I had Windows 98 and never had a problem. I did a clean install of Windows XP and of course Java was not included. I went to Sun, download Java 2 Runtime...
198
by: Michael N. Christoff | last post by:
Java, the software developed by Sun Microsystems in the mid-1990s as a universal operating system for Internet applications, gave NASA a low-cost and easy-to-use option for running Spirit, the...
1
by: Matt | last post by:
Hello I have spent the last weeks trying to solve this problem but with no luck at all, I have a piece of code that looks like this declare @bestnr int, @artnr varchar(25), @journalnrrow...
6
by: Bart Schelkens | last post by:
Hi, how can I execute a piece of Java-script after a piece of vb-net-code has been executed? Thx
34
by: kpg | last post by:
Hello all, I have an asp.net web application with tons of Java script files. I would like to protect the Java Script somehow so it can't be seen by a remote user. I found several 3rd party...
6
by: Rhino | last post by:
I'm trying to debug a simple Java UDF written in the DB2General style within Eclipse. I'm getting a java.lang.UnsatisfiedLinkError when I execute the set() method in the UDF. I know that the...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
12
nomad
by: nomad | last post by:
Hi everyone; My Class has ended and I was not able to solve this problem in time, and I would still like to solve it. I got these error code. Exception in thread "main"...
4
by: Quill_Patricia | last post by:
I have a Python script which is used to load data into a database. Up to now this script has been run by customers from the Windows command prompt using "python edg_loader.pyc". Any error messages...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.