Jump to content
MakeWebGames

Help - add an Image on the main menu


hwkeye

Recommended Posts

If your looking for a background image I would suggest using some CSS.

and EG would be:

in the css of your header or style.css add this at the bottom.

.menuh{

background-image:url(images/menuhead.png);

display:block;

}

.menuc{

background-image:url(images/menucenter.png);

padding-top:10px;

background-repeat: repeat-y;

.menuf{

background-image:url(images/menufooter.png);

display:block;

}

then on mainmenu.php add this under <?php:

echo '<div class="menuh"></div>

<div class="menuc">';

then at the bottom after Logout

add this:

<div class='menuf'></div>

</div>";

Hope this helps :)

Link to comment
Share on other sites

tiny added bit ..

print "<img src ='Image.png' title = 'Home' height ='xxx' width='xxx' border='0' />Home

 

changed ALT to TITLE as some browsers dont like ALT

xxx on both width and height can be numerical to fit an image accordingly into your game.

BODER='0' Will remove the blue border around an image so when its clicked it won't look stupid..

Link to comment
Share on other sites

tiny added bit ..

print "Image.pngHome

 

changed ALT to TITLE as some browsers dont like ALT

xxx on both width and height can be numerical to fit an image accordingly into your game.

BODER='0' Will remove the blue border around an image so when its clicked it won't look stupid..

That actually helped me :thumbsup:

Thank you

Regards Linton

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.

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