Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

using secure image backgrounds in css


markmarkmark

Recommended Posts

Posted

I am using images as background to my infoboxes. However this becomes a problem when moving to the secure part of my site (checkout) in that these items are being loaded from a non-secure url. How can i get the images to load under the https url?

 

Thanks in advance for any help.

 

PS the url is located in the stylesheet, is this the correct place?

Posted
I am using images as background to my infoboxes. However this becomes a problem when moving to the secure part of my site (checkout) in that these items are being loaded from a non-secure url. How can i get the images to load under the https url?

 

Thanks in advance for any help.

 

PS the url is located in the stylesheet, is this the correct place?

 

Do not use picture references containing the whole picture path including the http , only use the "virtual" path, ie. images/your-picture.jpg

Posted
Do not use picture references containing the whole picture path including the http , only use the  "virtual" path, ie. images/your-picture.jpg

 

Thanks Nick.

 

I have all my urls using a 'virtual' path but you have made me think that maybe there is somewhere else that is not using the virtual path. I tracked it down to a flash file i am using in the header. I tried commenting out this part and it worked all ok. Do you know how i can fix the problem with these urls though as they are external references to load the flash drivers?

 

Problem part of script below that is contained in header.php

 

 

<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="160" height="160">

<param name="movie" value="images/head_images/h2.swf">

<param name="quality" value="High">

<param name="base" value="images/head_images/h2.swf">

<embed src="../images/head_images/h2.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="160" height="160" quality="High" base="../images/head_images/h2.swf"></object>

Posted
Thanks Nick.

 

I have all my urls using a 'virtual' path but you have made me think that maybe there is somewhere else that is not using the virtual path. I tracked it down to a flash file i am using in the header. I tried commenting out this part and it worked all ok. Do you know how i can fix the problem with these urls though as they are external references to load the flash drivers?

 

Problem part of script below that is contained in header.php

<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="160" height="160">

  <param name="movie" value="images/head_images/h2.swf">

  <param name="quality" value="High">

  <param name="base" value="images/head_images/h2.swf">

  <embed src="../images/head_images/h2.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="160" height="160" quality="High" base="../images/head_images/h2.swf"></object>

 

 

post or pm me the url and i will have a look....

Archived

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

×
×
  • Create New...