Jump to content

pictures in separate folder...


visitor

Recommended Posts

Hi,

 

I've got pictures in a separate folder named photos. I'm trying to link it as follows...

 

slsContents[0] = "<img src=\photos\"ip2803-017.jpg\" width=\"512px\" height=\"384px\">";

 

unfortunately this doesn't work.  Does anybody know how this might work, please?

 

Thanks

 

visitor

Link to comment
Share on other sites

Hi,

 

I've got pictures in a separate folder named photos. I'm trying to link it as follows...

 

slsContents[0] = "<img src=\photos\"ip2803-017.jpg\" width=\"512px\" height=\"384px\">";

 

unfortunately this doesn't work.  Does anybody know how this might work, please?

 

Thanks

 

visitor

 

it should like like this

 

slsContents[0] = "<img src=photos\"ip2803-017.jpg" width="512px" height="384px">"

 

 

damon

 

 

 

Link to comment
Share on other sites

Hi,

 

Please see below what the developer wrote...

 

//---------------------------------------------------------------------------------------------------------

// CONTENTS

//---------------------------------------------------------------------------------------------------------

// Insert your contents here. Example:

//

// slsContents[0] = "This is the first page.";

// slsContents[1] = "This is the second page.";

// slsContents[2] = "Here's an image:<br><img src=\"path/to/image\">";

// ...

//

// - You can use HTML-tags.

// - Escape all quotation marks inside your contents with a backslash (\").

// - Use tables or CSS to set a padding where needed.

 

I tried this... but it still doesn't work (so you're right haku)

 

slsContents[0] = "<img src=photos\"ip2803-017.jpg\" width=\"512px\" height=\"384px\">";

 

visitor

Link to comment
Share on other sites

I'll repeat myself:

 

Look at the HTML output of that code, and you will probably see right away. You have some error in your logic.

 

Always remember, it's not the php input that renders, it's the HTML output.

 

hint: <img src="path/to/file.jpg" />

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.