Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


help, new to js

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
luvaddict411
Advanced Cheater
Reputation: 0

Joined: 22 Nov 2007
Posts: 54

PostPosted: Sat May 10, 2008 3:49 pm    Post subject: help, new to js Reply with quote

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
View user's profile Send private message AIM Address
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Sat May 10, 2008 4:07 pm    Post subject: Re: help, new to js Reply with quote

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
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Sat May 10, 2008 4:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
luvaddict411
Advanced Cheater
Reputation: 0

Joined: 22 Nov 2007
Posts: 54

PostPosted: Sat May 10, 2008 4:30 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites