<html>
<head>
<title>Cory's Page</title>
</head>
<body bgcolor = "black">
<SCRIPT language = "javascript">
<A HREF="jmouse.htm" onMouseover="window.status='Hi there!'; return true">Place your mouse here!</A>
</SCRIPT>
</body>
</html>
[web] Whats wrong wit da javascript?
Trying to get this to work. I cant get any javascript to work for like the onmouseclick or mouseovers.
heres my source COPIED FROM A TUTORIAL BUT DOESN"T WORK!
Plz help =D
<code>
<html>
<head>
<title>Cory's Page</title>
<script>
function changeText(sText){
status = sText
}
</script>
</head>
<body bgcolor = "black">
Place your mouse here!
</body>
</html>
</code>
try that
EDIT
your need to view source as I can never remeber how to do code
onMouseover="changeText('Hi There')
<html>
<head>
<title>Cory's Page</title>
<script>
function changeText(sText){
status = sText
}
</script>
</head>
<body bgcolor = "black">
Place your mouse here!
</body>
</html>
</code>
try that
EDIT
your need to view source as I can never remeber how to do code
onMouseover="changeText('Hi There')
Don't put spaces between the properties in the tags
ie:
bgcolor="blue"
not
bgcolor = "blue"
EDIT: Themonkster : your code is equally flawed.
ie:
bgcolor="blue"
not
bgcolor = "blue"
EDIT: Themonkster : your code is equally flawed.
But thats not how it said to do it on the tutorial =/ whats wrong with mine i tried no spaces didn't work :P
yeah I just copied and pasted the others code just to get the javascript working not really looking at the formatting.<br><br>my way if it works is more re-usable hopefully
A) That changes the status text. That's the text that appears in the bottom of the browser window, as in where it says done in Mozilla.
B) The problem with the onmouseover does not have to do with the spaces, but the spaces are still a problem.
C)Stop speaking ghetto.
B) The problem with the onmouseover does not have to do with the spaces, but the spaces are still a problem.
C)Stop speaking ghetto.
<html>
<head>
<title>Cory's Page</title>
</head>
<body >
Place your mouse here!
</body>
</html>
there you go fixed it by removing the script tags and putting in the mouseover instead
onMouseover="javascript:window.status='Hi there!'; return true"
<head>
<title>Cory's Page</title>
</head>
<body >
Place your mouse here!
</body>
</html>
there you go fixed it by removing the script tags and putting in the mouseover instead
onMouseover="javascript:window.status='Hi there!'; return true"
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement