User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 427,023 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,556 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 8051 | Replies: 2
Reply
Join Date: Sep 2006
Posts: 162
Reputation: Cerberus is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 14
Cerberus Cerberus is offline Offline
Junior Poster

Enlarge thumbnail image in new window

  #1  
Dec 28th, 2006
Hi, i have a page which is built from an asp script providing a thumbnail of an image from a database. I want to enlarge the image (when clicked on) in a new window and i can't work out how to do it using Javascript.

Any help would be much appreciated.


Also can you include two external CSS files in the same html page?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2005
Location: Northampton UK
Posts: 1,142
Reputation: roryt will become famous soon enough roryt will become famous soon enough 
Rep Power: 6
Solved Threads: 9
roryt's Avatar
roryt roryt is offline Offline
Veteran Poster

Re: Enlarge thumbnail image in new window

  #2  
Dec 28th, 2006
I don't know the answer to the first question. But in answer to your second question, yes you can include two css external files in one html doc. You can do this by either just including two in the html doc or you can include the second one using @import in the first css file. But remember if you use the same class in two css files the last on that is read is how the element displays. I hope this solves you second problem.
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 1,289
Reputation: vishesh is on a distinguished road 
Rep Power: 5
Solved Threads: 32
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: Enlarge thumbnail image in new window

  #3  
Dec 28th, 2006
Well, ASP generates the HTML code as it's a server side script. Now what you could do is knock out the the url of image form that thumbnail image and open it in enlarge,pop up, new window etc... But you said your JS is not working.....so it would be nice if you could atleast post the code, cause it could be some problem with JS if you have already made.

And if you havn't made it yet, use HTML DOM, style properties&methods(using JS only) and you will get it.

If you didn't understood what I said you may post here.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 2:49 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC