Jump to content
MakeWebGames

Recommended Posts

Posted (edited)

Are you getting an error?

Edit: nvm I see whats going on, what about using the url? not an option? Well then try this: <img src=\"/img/pmg.png\" al\"pm" />

Let me know if it works.

Edited by Blade Maker
Posted

eewww I dislike the use of \ / for such things.

I think your much better putting images in the directory its supposed to be in. Makes life much easier in the end. Otherwise your image directory contains a silly amount of images

Posted

It's certainly easier to code with, yet... it will end up with a lot of files in the same directory. Think wisely if this is what you want as once the game is running you hardly move to a more structured solution.

  • 2 weeks later...
Posted (edited)

for each directory you add ../

YOU have : include "../core/top.php";

SHOULD be : include "/../top.php";

(guessing your core directory is in your root directory, if its not and its in another directory above the root add another ../before your php page...)

you would not add core or the directory name...

as for your images, you would add them as /images/pic.png

a slash before the image directory...

So your line : <img src=\"img/pm.png\" alt=\"pm\"/>

should be : <img src="/img/pm.png" alt="pm"/>

Edited by lucky3809

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...