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 07-17-2003, 11:06 AM   PM User | #1
carweb
New Coder

 
Join Date: Jul 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
carweb is an unknown quantity at this point
What's wrong??

I've made this Javascript:

<html><head><script language="javascript">
<!--
function visa_bild()
{


bild=new Array("system/top_carw_001.jpg","system/top_carw_002.jpg","system/top_carw_003.jpg","system/top_carw_004.jpg","system/top_carw_005.jpg","system/top_carw_006.jpg")

visa_bilden=bild[Math.floor(Math.random()*bild.length)]
visa_bilden="<IMG SRC=\""+visa_bilden+"\" HSPACE=0 VSPACE=0>"
return visa_bilden
}
//-->
</script>
</head><body bgcolor=white scroll=no topmargin=0 leftmargin=0>
<script language="javascript">
<!--
document.write(visa_bild())
//-->
</script>


something is wrong.
HSPACE=0 and VSPACE=0 doesn't works
why?

Sorry for my bad english.

Last edited by carweb; 07-17-2003 at 05:47 PM..
carweb is offline   Reply With Quote
Old 07-17-2003, 01:45 PM   PM User | #2
Spudhead
Senior Coder

 
Spudhead's Avatar
 
Join Date: Jun 2002
Location: London, UK
Posts: 1,856
Thanks: 8
Thanked 110 Times in 109 Posts
Spudhead is on a distinguished road
Because it's HSPACE and VSPACE

Spudhead is offline   Reply With Quote
Old 07-17-2003, 05:19 PM   PM User | #3
carweb
New Coder

 
Join Date: Jul 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
carweb is an unknown quantity at this point
thanks
carweb is offline   Reply With Quote
Old 07-17-2003, 05:21 PM   PM User | #4
carweb
New Coder

 
Join Date: Jul 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
carweb is an unknown quantity at this point
What now?
It doesn't works
carweb is offline   Reply With Quote
Old 07-17-2003, 05:40 PM   PM User | #5
arnyinc
Regular Coder

 
Join Date: Jan 2003
Posts: 867
Thanks: 4
Thanked 8 Times in 8 Posts
arnyinc is an unknown quantity at this point
That is the most gratuitous, excessive use of smiley faces in the history of the Internet.

Your script works for me. What is wrong?
arnyinc is offline   Reply With Quote
Old 07-17-2003, 05:44 PM   PM User | #6
carweb
New Coder

 
Join Date: Jul 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
carweb is an unknown quantity at this point
Quote:
Originally posted by arnyinc
That is the most gratuitous, excessive use of smiley faces in the history of the Internet.

Your script works for me. What is wrong?
I've got at table under my image and it is more than 0 pixels under
carweb 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 11:41 AM.


Advertisement
Log in to turn off these ads.