Jump to content

[HELP] HTML problem


Maprex

Recommended Posts

I have a problem with HTML. When i write at the notepad these commands like: <IMG SRC="../anyimage.gif"> or <BGSOUND SRC=".../blablabla.mp3"> at the browser doesnt happen nothing. Before someone tell that may i dont save the file, i tell you that i do it. I dont have any problem with the browser, maybe i use Opera the last version but i have and Google Chrome.

 

Someone help me. I dont know if i write with a false way the commands or something else is going wrong.

Link to comment
Share on other sites

well first of all use notepad++ ;)

2nd, make sure there is nothing wrong with the pic or sound you're putting and also that they are in the location you specified!

and does this happen only with these 2 commands?

Link to comment
Share on other sites

I use notepad, the pics and the music dont have any problem. And yes at the whole commands that i have used until now, only these two have some problem.

well better download notepad++ it will make you understand where is the prob!

or you can send me the code to test it for you, whatever you want.

Link to comment
Share on other sites

you can  open the html file with notepad or WordPad and Insert the HTML Code

I dont want to edit any other html file i try to make my own html files.

 

Does the "View Source" shows you something?

 

View Source??? I am newbie at website coding.
Link to comment
Share on other sites

is the mp3 saved at the same directory with .html file?

 

also

 

where exactly did you insert that tag? between <body> ... ... </body>?

 

 

it should be placed on <head> ... <bgsound src="..."></head>

 

I'm not sure but I think bgsound is a double tag.

Link to comment
Share on other sites

I'm not sure but I think bgsound is a double tag.

 

Nop, it's not.

 

it should be placed on <head> ... <bgsound src="..."></head>

 

Between the body tags you mean.

 

View Source??? I am newbie at website coding.

 

When you are in your browser, viewing your page, just press CTRL+U (in mac CMD+U).

 

-Blane

Link to comment
Share on other sites

this is your directory?

folder: MyWeb

MyWeb\index.html

MyWeb\images\imagejpg

MyWeb\sounds\bgsound.mp3

???

index.html

 

<body>

change your code for img to

<img src="images/image.jpg" />

change your bgsound code to

 

<embed src="sounds/bgsound.mp3" visible="hidden" loop="yes" />

</body>

<!-- Comment: this embed is embeding the sound with "hidden" it means only sound, change loop to "no" if you want the sound play once -->

 

note: this code must compatible to all browser...

 

ask me more if you have any question ^_^

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...