Solved

Show an image pulled from database on MouseOver

Posted on 2008-10-04
2
379 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now