Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Popup pic from product thumbnail in ASP
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Popup pic from product thumbnail in ASP

 Post Reply Post Reply
Author
keith View Drop Down
Newbie
Newbie


Joined: 20 June 2004
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote keith Quote  Post ReplyReply Direct Link To This Post Topic: Popup pic from product thumbnail in ASP
    Posted: 20 June 2004 at 3:24pm

Guys,

I need to combine a script like the following ;
http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm

with my ASP product listing code.. which looks like this:

If Trim("X"&rs("Thumbnail")) = "X" Then thmbnl = "" Else thmbnl = "<img src=""img/products/"&rs("Thumbnail")&""" vspace=2 hspace=2 align=left border=0 alt="&KeywordExcerpt(strContent, 75, 76)&">"
Response.Write"<tr"&bgColor&""&dynrow&"&g t;<td"&dyngo&" valign=""middle""><font color=""#333333"" size=""1"" face=""Verdana, Arial, Helvetica, sans-serif""><A HREF=""default.asp?pg=products&specific="&Encrypt(rs ("ITEMID"))&""">"&thmbnl&"<b> Image Name: </b>"&rs("ITEMNAME")&"<br><b> Description: </b>"&Excerpt(rs("DESCRIP"),200,170)&"</td& gt;</A>"&_

I would prefer to use DHTML to do a popup of the large product image (from the column "ImageFile" in the DB) as I have a feeling it might be less susceptible to pop-up blocking software than javascript. The end result should however be the same, I would just like the user to be able to rollover the product thumbnail that is displayed from the above code and have the IMG show up as a centered frameless window with no toolbars or such.

Additionally, it'd be great if the picture was scaled to a certain size automatically; the 'big' product pics are 720 pixels wide or high. Having these pictures scaled down to 300 pixels or so would be great for loading times..

Thanks!

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2004 at 8:47pm
pop-up blocking software stops automatic pop-ups that are created onLoad, not user initiated pop-ups.
Back to Top
keith View Drop Down
Newbie
Newbie


Joined: 20 June 2004
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote keith Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2004 at 9:24pm

Originally posted by ljamal ljamal wrote:

pop-up blocking software stops automatic pop-ups that are created onLoad, not user initiated pop-ups.

Well that's great then half the battle is solved..    

Now all  I need is a mouseover on the product thumbnail to pop up the large version out of the DB.



Edited by keith
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.