Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

graphics in a page


Guest

Recommended Posts

i created a blank page, and i want to insert graphics in it, like small thumbnail images with 1 px borders, and make an url that open the pic in a blank page or pop-up box to view it full size, or to make download something eg a zip file, or an mp3...

 

i can only input text right now.

 

i tried this:

 

define('TEXT_INFORMATION', '</SPAN><A href="URL" target="blank"><SPAN style=><p align="center"><img height="0" src="images/music.jpg" width="0" border="0"></p></SPAN>');

 

and it didnt worked. i also tried the full url in the src ...

 

can some1 help me plz?

Link to comment
Share on other sites

you have the image height and width set to 0 therfore you won't be able to see the image!!

 

try

define('TEXT_INFORMATION', '</SPAN><A href="URL" target="blank"><SPAN style=""><p align="center"><img height="100" src="images/music.jpg" width="1000" border="0"></p></SPAN></a>');

 

(note the addition of "" after span=)

Edited by perfectpassion
Link to comment
Share on other sites

thanx it worked.

 

how can i make the image open in a pop-up and a border of 1 px but with a color, not red, what would be the change/addition to the code you gave me?

 

also, i tried to put like 2 images side to side, but it looks like the gotta be on top of each other, like i would like to put images from left to right.

 

do you know how to make this work?

 

thanks

Edited by acebeatz
Link to comment
Share on other sites

to have more than one image side by side you need to move the <p> segments and just duplicate the rest of the code:

define('TEXT_INFORMATION', '</SPAN><p align="center"><A href="URL" target="blank"><SPAN style=""><img height="100" src="images/music.jpg" width="1000" border="0"></SPAN></a><A href="URL2" target="blank"><SPAN style=""><img height="100" src="images/music2.jpg" width="1000" border="0"></SPAN></a><A href="URL3" target="blank"><SPAN style=""><img height="100" src="images/music3.jpg" width="1000" border="0"></SPAN></a></p>');

 

Please don't bump your posts!

Edited by perfectpassion
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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...