| View previous topic :: View next topic |
| Author |
Message |
luvaddict411 Advanced Cheater
Reputation: 0
Joined: 22 Nov 2007 Posts: 54
|
Posted: Sat May 10, 2008 3:49 pm Post subject: help, new to js |
|
|
the code is
< | Code: | html>
<head>
<title>iRock - The Virtual Pet Rock</title>
</head>
<body>
<div style="margin-top:100px; text- align:center">
<img id="rockImg" src="rock.png" alt="Irock" />
</div>
</body>
</html> |
but the image wont work for some reason,
i saved it on my pictures but obviously thats not working, what else do i have to do?
_________________
Learning c# and java.
 |
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Sat May 10, 2008 4:07 pm Post subject: Re: help, new to js |
|
|
| luvaddict411 wrote: | but the image wont work for some reason,
i saved it on my pictures but obviously thats not working, what else do i have to do? | The code is fine. I guess the image is in wrong dir or there's something wrong with the permissions. Is your xhtml file in "my pictures" too? If not, there's your reason.
Btw.. How the heck is this related to JS?
|
|
| Back to top |
|
 |
Reak I post too much
Reputation: 0
Joined: 15 May 2007 Posts: 3496
|
Posted: Sat May 10, 2008 4:14 pm Post subject: |
|
|
Hey,
This is not JavaScript, it's just html.
The image has to be on the same folder as this file.
Also you should use title instead of alt and border='0' .
|
|
| Back to top |
|
 |
luvaddict411 Advanced Cheater
Reputation: 0
Joined: 22 Nov 2007 Posts: 54
|
Posted: Sat May 10, 2008 4:30 pm Post subject: |
|
|
oh srry i'm reading a book on how to learn javascript and the first few pages start with html,
and thanks for the help
_________________
Learning c# and java.
 |
|
| Back to top |
|
 |
|