Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 09-03-2007, 11:40 AM   #1 (permalink)
msjkirkpatrick
Recruit
 
Join Date: Sep 2007
Posts: 1
msjkirkpatrick is on a distinguished road
remote rollover

Hello,

I created a web gallery using image ready rollover effects. I wanted a larger view of an image to appear when you click on a thumbnail on the same page. Essentially three things occur. 1) At the bottom of the page is a small thumbnail .gif that has script to show a highlighted .gif when the mouse cursor is over the thumbnail. 2) When the thumbnail is clicked an image is opened in a blank space on the page. 3) -here is the problem- when the cursor is moved off of the thumbnail the MOUSEOUT command causes the loaded image to disappear. My question is: Is it possible to have the opened picture stay on the page until a new thumbnail is clicked, yet have the image .gif rollover still run on the other images? Does anyone know how to build a gallery which shows a list of thumbnails that will show a larger view when clicked on, but not disappear when you take the mouse off the thumbnail. Here is the sample Java that I am working with:

Code:
<TD><A 
            onmouseup="changeImages('gallery_14', 'images/gallery_14-over.gif', 'gallery_33', 'images/gallery_33-gallery_14_over.gif'); return true;" 
            onmousedown="changeImages('gallery_14', 'images/gallery_14- over.gif', 'gallery_33', 'images/gallery_33-gallery_14_over.gif'); return true;" 
            onmouseover="changeImages('gallery_14', 'images/gallery_14-over.gif', 'gallery_33', 'images/gallery_33-gallery_14_over.gif'); return true;" 
            onclick="changeImages('gallery_03', 'images/gallery_03-gallery_14_click.gif', 'gallery_05', 'images/gallery_05-gallery_14_click.gif', 'gallery_09', 'images/gallery_09-gallery_14_click.gif');" 
            onmouseout="null; return true" 
            href="http://DomainName.com/gallery.html#"><IMG height=34 
            alt="" src="gallery_files/gallery_14.gif" width=45 border=0 
            name=gallery_14></A></TD>
Any help would be appreciated!!

-Jessica
msjkirkpatrick is offline   Reply With Quote
Old 09-04-2007, 07:34 AM   #2 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
It seems like you should remove the onmouseout event and modify changeImages to not only switch the current image but to reset all other images in the gallery to their initial state.

That probably requires making an associative array that links each image to its "mousedown" and default files and then just iterating through the rows each time you get a mousedown or mouseclick event.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote server is running my .exe rather than allowing it to be downloaded! TomJ MS Technologies ( ASP, VB, C#, .NET ) 0 05-19-2005 08:05 AM
Copy a remote file robertfoley Platform/API C++ 9 03-18-2005 11:08 PM
download a remote file to the local machine. sde Java 4 12-04-2004 10:49 AM
[Problem] Remote SQLServer CE ahan MS Technologies ( ASP, VB, C#, .NET ) 0 10-07-2004 07:28 PM
Remote Execution moremonks Standard C, C++ 3 06-10-2003 08:01 AM


All times are GMT -8. The time now is 12:37 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting