Solved

Show an image pulled from database on MouseOver

Posted on 2008-10-04
2
378 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
Comment Utility
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
Comment Utility
Thanks
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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)

772 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

14 Experts available now in Live!

Get 1:1 Help Now