Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-26-2007, 09:58 AM   PM User | #1
lse123
Regular Coder

 
Join Date: Dec 2005
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
lse123 is infamous around these parts
js - textbook questions: beginner: event handlers

js - textbook questions

if x=6 y=7
tell me result:
y=++x x,y=?
y=x++ x,y=?

below is correct with two statements and "return" ?
<a href="http://www.polis-index.com.cy/" onMouseOver="document.home.src='images/home2.gif'; window.status='Go To Home Page'; return true"><img name="home" src='images/home.gif' alt='press me to go to homepage'></a>

this should run / prompt:
parseFloat(prompt("enter a number: ", ""))

what js function to use and what syntax for write in a doc the DATE last modified ?
lse123 is offline   Reply With Quote
Old 12-26-2007, 01:09 PM   PM User | #2
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,103
Thanks: 197
Thanked 2,421 Times in 2,399 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
You really ought to use Google for this type of question.

There are lots of scripts which return the date last modified, including one close to home at:-

http://www.javascriptkit.com/script/cut8.shtml

I do not understand

tell me result:
y=++x x,y=?
y=x++ x,y=?


but you should study your textbook for this sort of thing, i.e how assignment operators work. You can find out many things by simple experiment:-

<script type="text/javascript">
y = 10;
z = ++y;
alert (z); // 11
</script>
Philip M is offline   Reply With Quote
Old 12-26-2007, 10:57 PM   PM User | #3
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,532
Thanks: 0
Thanked 503 Times in 494 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
I have a series of tutorials at http://javascript.about.com/od/learn...Javascript.htm that covers all this.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:57 AM.


Advertisement
Log in to turn off these ads.