Solved

Show an image pulled from database on MouseOver

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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

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 …
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

861 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