Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to add images into the index.php


KandyEyedDancer

Recommended Posts

Posted

Hi, I had a search, but couldn't seem to find the info I needed.

 

What is the code to place an image in my index page? It would be in the section under 'Welcome Guest would you like.......'and how do I make it so it is free size? IE: it will just be its regular size without me having to find out its actual dimensions?

 

Thankyou...I love OSC! Once I figured out the general php'ing, it was easy to get it how I wanted it- so thankyou to every regular contributor, and advice giver! I couldn't have done it without you!

Posted

Whatever is inside

 

define('TEXT_MAIN', '......................');

 

where the dots are is a pure HTML text and you can put any HTML in it. Part of HTML is inclusion of images. There is a tag <img.....> that is used for it. Simplest form would be <img src="./images/image.jpg">, meaning that your image is in ./images directory and it's called image.jpg on your server. However <img> can point to other servers on the web and it has a bunch of optional parameters describing how your image should be displayed.

 

Technically, if you want to be fancy with this main page and don't know HTML, you can make it using any graphical HTML editor like Frontpage, for example. And then just copy and paste HTML text into this "define".

Posted

This site, http://www.w3schools.com/default.asp, is good for learning html, php, sql and css.

 

(or at least understanding what the commands do)

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...