Jump to content
  • Advertisement
Sign in to follow this  
SSJCORY

[web] Whats wrong wit da javascript?

This topic is 5175 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!
<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>

Plz help =D

Share this post


Link to post
Share on other sites
Advertisement
<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')

Share this post


Link to post
Share on other sites
Don't put spaces between the properties in the tags

ie:

bgcolor="blue"

not

bgcolor = "blue"

EDIT: Themonkster : your code is equally flawed.

Share this post


Link to post
Share on other sites
But thats not how it said to do it on the tutorial =/ whats wrong with mine i tried no spaces didn't work :P

Share this post


Link to post
Share on other sites
yeah I just copied and pasted the others code just to get the javascript working not really looking at the formatting.

my way if it works is more re-usable hopefully

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!