-
One more try -
PHP Code:
$ImageDisplay = "<img src='$FileLocation' alt='' style='width:expression( document.body.clientWidth > 239 ? "240px" : "auto" );max-width:240px;height: expression( this.scrollHeight > 319 ? "320px" : "auto" );max-height:320px;' border='0' align='middle'>";
(there was a small error in the code I posted above)
Works for me in IE9.
-
Fr further reading to do with theis, try Here
-
Thanks, but not working in either browser. But if it's working for you I'll try again.
By the way, if it's important, I've been adusting the code to be consistent with the page coding...
Code:
$ImageDisplay = "<img src='$FileLocation' alt='' style='width:expression( document.body.clientWidth > 239 ? '240px' : 'auto' );max-width:240px;height: expression( this.scrollHeight > 319 ? '320px' : 'auto' );max-height:320px;' border='0' align='middle'>";
-
Yes, it is important.
Try using this exact code -
PHP Code:
$ImageDisplay = "<img src='$FileLocation' alt='' style='width:expression( document.body.clientWidth > 239 ? "240px" : "auto" );max-width:240px;height: expression( this.scrollHeight > 319 ? "320px" : "auto" );max-height:320px;' border='0' align='middle'>";
And if that doesn't work, try this -
PHP Code:
$ImageDisplay = "<img src='$FileLocation' alt='' style='width:expression( document.body.clientWidth > 239 ? 240px : auto );max-width:240px;height: expression( this.scrollHeight > 319 ? 320px : auto );max-height:320px;' border='0' align='middle'>";
-
1 Attachment(s)
I'm getting the full size 640X960 image with
Code:
319 ? '320px' : 'auto' );max-height:320px;' border='0' align='middle'>
displaying beneath it, as shown in the image.
EDIT: Still getting the full image in IE with the second code as well, but it is working in FF. Is it still working for you in IE?
Thanks... I'm very grateful for your kindness to find a solution.
-
What do I have to do on your website to duplicate that picture? (Also, is it on that link that you gave me before?)
When I follow the instructions, it works fine? Where is that image in the attachment you posted? I can't find it...
Attachment 4586
-
Did you try using the javascript I posted?
-
Bernie: Yes thanks, I did try the java script. It had no effect.
Keyboard: This is the main link to that section
The soft works as follows:
- Choose one of the four available images by clicking on it.
- On the next page, write whatever you like for test purposes as name etc.
- Then click on Generate Screensaver
-
Did you change the id's in the script appropriately?
-
1 Attachment(s)
I changed only the double quotation marks to single.
If it helps, attached is the entire include where you code is included.