[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Show an image pulled from database on MouseOver

Posted on 2008-10-04
2
Medium Priority
?
391 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 2000 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

Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
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.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

649 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