Browser MMO video #8

Location of the Videos
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: video#8

Post by Jackolantern »

darspire wrote:ok but still images wont get added

You will probably need to post your code where you are trying to open an image, so we can see what you are doing.
The indelible lord of tl;dr
darspire
Posts: 194
Joined: Sat Jul 25, 2009 9:21 pm

Re: video#8

Post by darspire »

<div id="login"><div align="center"><img src="images/http://ostrianiel.com/images/sites/logo.jpg" width="354" height="71" border="0" />

the "http://ostrianiel.com/images/sites/logo.jpg" was just a random image its not what im using
if you love something, let it go.
if it doesnt return.....hunt it down and kill it.
User avatar
Noctrine
Posts: 928
Joined: Thu Apr 23, 2009 9:57 pm

Re: video#8

Post by Noctrine »

darspire wrote:<div id="login"><div align="center"><img src="images/http://ostrianiel.com/images/sites/logo.jpg" width="354" height="71" border="0" />

the "http://ostrianiel.com/images/sites/logo.jpg" was just a random image its not what im using
Guessing it has something to do with<img src="images/http://ostrianiel.com/images/sites/logo.jpg" width="354" height="71" border="0" />

that?
Jesse Dorsey
ProjectANI - Lead Developer Person
http://about.me/jessedorsey
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: video#8

Post by hallsofvallhalla »

dun dun dun..... yeah that seems like it might be the problem. Let us know if that fixes it. Nice catch noc.
darspire
Posts: 194
Joined: Sat Jul 25, 2009 9:21 pm

Re: video#8

Post by darspire »

so what should i put instead of images?
if you love something, let it go.
if it doesnt return.....hunt it down and kill it.
Alexx
Posts: 23
Joined: Sun Jul 26, 2009 3:39 am

Re: video#8

Post by Alexx »

darspire wrote:so what should i put instead of images?
Depending on where your image is coming from, just follow this and you should be fine;

If it is from the web (http://) then do it like this

Code: Select all

<img src="http://ostrianiel.com/images/sites/logo.jpg" width="354" height="71" border="0" />
It will search that link and find it.


If it is coming from your computer you would do the 'images/' thing so to say;

Code: Select all

<img src="images/logo.jpg" width="354" height="71" border="0" />
So lets say you have a file called "Plums", when linking images it would look for a folder called 'images' and a file inside it called 'logo.jpg'.



There is sure-fire way of getting an image linked up as well, if you open the image up in your browser and copy that link in the address bar, you can insert it in like...

Code: Select all

<img src="INSERT LINK HERE" width="354" height="71" border="0" />
(Will look something like "C:\User\Username\Desktop\filename.jpg")

And it will link it to where-ever it came from but it will only work for you since the file is on your computer. I would try to stay away from this method but it works just fine for testing :)
darspire
Posts: 194
Joined: Sat Jul 25, 2009 9:21 pm

Re: video#8

Post by darspire »

ok so what if i make something with paint program and save it as ... testlogin? then what would i do for the link?
if you love something, let it go.
if it doesnt return.....hunt it down and kill it.
Alexx
Posts: 23
Joined: Sun Jul 26, 2009 3:39 am

Re: video#8

Post by Alexx »

darspire wrote:ok so what if i make something with paint program and save it as ... testlogin? then what would i do for the link?
If you put it in the same folder with the php file, (Anything considered on the desktop is one massive huge folder btw heh)

Code: Select all

<img src="testlogin.gif" width="354" height="71" border="0" />
.gif = whatever extension you are using..think paint uses bitmaps so it would be like .bmp or something...just look when the file is being saved :)


http://tinypic.com Is a good site to host your pictures quickly, no account needed..just browse, upload, done. There are tons of these sites out there though...thought I would throw that out there.
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: video#8

Post by Jackolantern »

Here is a nice little page about how to format your links. An "absolute link" gives the full HTTP:...and everything else. This is the only way to link to another page (such is the case if you add your images to a image hosting service). If you add the images to your web server and host them locally (which has several benefits, but requires more bandwidth to serve), you will want to link to the image with "relative links". There is a bit more to know about these types, which is explained pretty well in the above linked article.
The indelible lord of tl;dr
darspire
Posts: 194
Joined: Sat Jul 25, 2009 9:21 pm

Re: video#8

Post by darspire »

ok so i figured out how to add images. but now i want to add images when a monster appears. like when a goblin appears, a pic of a goblin and when an orc appears, a pic of an orc. any1 know how?
if you love something, let it go.
if it doesnt return.....hunt it down and kill it.
Post Reply

Return to “Older Browser MMO Videos”