Solved

Show an image pulled from database on MouseOver

Posted on 2008-10-04
2
383 Views
Last Modified: 2013-12-24
Hello all,

When someone Mouseovers an image, it should display the larger version of it. This is a database controlled environment so these images are all getting pulled from the database. Here is an example of what I need it to do: Goto www.istockphoto.com and do a search. I know that I need to use javascript for this but just dont know how to get to it. Also I am running my program in coldfusion.

Thanks.
0
Comment
Question by:kensummers
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 44

Accepted Solution

by:
scrathcyboy earned 500 total points
ID: 22646028
If you don't want a delay on loading the big image, you will have to PRELOAD it onto the page, and then swap each image into place using javascript, onMouseOver().  This can become a problem if there are a lot of images to preload, especially big ones, it will bog down loading of the page.

If you are pulling them out of a database, and you do NOT need a server language to get the images, then you can simply use an iframe on the page, and put that image into it, with target as the iframe name --

<A href="big-image123.jpg" target="iframe_name"> see big (or image here) </A>

If you do dynamically have to pull them out of the database, then you use ASP, PHP or CF to get the image name submitted to the server script, and return a page with the image -- a small popup window is the easiest way to do this.
0
 

Author Closing Comment

by:kensummers
ID: 31503137
Thanks
0

Featured Post

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question