Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

After purchasing with us the download link will be delivered to your forum message box.


This forum is now closed and has moved to a new location! Click here to find out why.

AuthorTopic: adding images  (Read 755 times)

RedQueen

  • Basic Member
  • *
  • Reputation Power: 14
  • RedQueen has no influence.
  • Offline Offline
  • Posts: 21
    • View Profile
adding images
« on: October 23, 2009, 06:44:39 PM »
not sure this is the right spot for posting but what i wanna know is this
say with the jail.php file i want to add a picture of a jal ell how and where would i add the code to do it
also in the shops i would like to have an image beside each item available in the shop how would i go about doing this

also instead of the basic roulette game i wish to add a flash roulette and then link  it to be played while your in jail how would i do that
i am basicaly new and learning as i go any help is greatly apreciated thank you
Logged

Snake

  • Basic Member
  • *
  • Reputation Power: 5
  • Snake has no influence.
  • Offline Offline
  • Posts: 6
    • View Profile
    • Email
Re: adding images
« Reply #1 on: December 31, 2009, 12:32:00 PM »
when editing pictures into a file like your jail you would do the following
at the very top of the file where it says this
<?php
include "globals.php";
you would put this under include "globals.php";
print "<img src='yourpic.jpg'>";
or whatever is at the end of your image .jpg or .gif or .png
Logged
BLAH BLAH BLAH BLAH

Jordan

  • Active Member
  • **
  • Reputation Power: 55
  • Jordan has no influence.
  • Offline Offline
  • Posts: 102
  • Website Developer for hire;
    • MSN Messenger - Pudda2008@hotmail.co.uk
    • View Profile
    • WWW
    • Email
Re: adding images
« Reply #2 on: February 14, 2010, 09:21:16 AM »
Snake is right, However

Code: [Select]
print "<img src='image.ext' width='150' height='150' alt='text' />";
That'll define the size you're after & If the image doesn't load it will say text instead off a blank box =)
Logged
Contact me
MakeWebGames.com
 


This forum is now closed and has moved to a new location! Click here to find out why.