473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

designated viewing area

Is it possible to have a "floating" area designated to show an enlarged
image of a thumbnail? Right now I'm using a script to enlarge the image,
where it's at, onmouseover, but when it enlarges, it re-draws the rest of
the page below it. Some times it enlarges in the area below the current
image which makes the mouse cursor no longer over the image so the
onmouseout (which reverts the image back to the original thumbnail size)
occurs instantaneously. So, it's hard to see the image, obviously.
I can make a frame on the right side of the page and designate the lower
portion as the viewing area if that is easier. I would rather have the
enlarged image float above the current page in the lower right hand corner
if that's possible.
You can view what I'm working on at:
http://www.geocities.com/garybeardbbcards/need1.htm
The image that enlarges beneath the current image messing up the onmouseout
is at the bottom of the page next to the "1989 Hill's Team MVP". If you
click on the green image you will see what I mean.

Thanks for any help,
Gary Beard
Nov 23 '05 #1
1 1419
Gary <gbeard12@ wrote:
Is it possible to have a "floating" area designated to show an enlarged
image of a thumbnail? Right now I'm using a script to enlarge the image,
where it's at, onmouseover, but when it enlarges, it re-draws the rest of
the page below it. Some times it enlarges in the area below the current
image which makes the mouse cursor no longer over the image so the
onmouseout (which reverts the image back to the original thumbnail size)
occurs instantaneously. So, it's hard to see the image, obviously.
I can make a frame on the right side of the page and designate the lower
portion as the viewing area if that is easier. I would rather have the
enlarged image float above the current page in the lower right hand corner
if that's possible.
You can view what I'm working on at:
http://www.geocities.com/garybeardbbcards/need1.htm
The image that enlarges beneath the current image messing up the onmouseout
is at the bottom of the page next to the "1989 Hill's Team MVP". If you
click on the green image you will see what I mean.
The first step is to validate your page - it has 206 errors, many not
trivial:

<URL:http://validator.w3.org/check?uri=http%3A%2F%2Fwww.geocities.com%2Fgarybea rdbbcards%2Fneed1.htm>
In your script element opening tag you have:
<script language="JavaScript1.2">
The language attribute is deprecated, type is required. Specifying a
language version can have harmful effects (though not in this case).

<script type="text/javascript">
function enlarge24(){
aimage24.style.pixelWidth=224


You are using element IDs as global variables, that is not standards
compliant and is not widely supported. Use getElementById or the images
collection.

pixelWidth is not a W3C standard CSS style property, so browser support
is likely to be patchy - use 'width'. Length properties must have units
(unless they are zero):

document.images['aimage24'].style.width = '224px';

With appropriate feature detection that would be:

var aImg;
if ( document.images
&& (aImg = document.images['aimage24'])
&& aImg.style){
aImg.style.width = '224px';
}

Which is long and messy when you have 20-odd in a page. Why not use
script when the page loads to attach a generic 'showBiggerImage'
mouseover/out to all the appropriate images? Then you can have a single
function that is passed a reference using 'this' and all those script
elements are not required.

Load the lager images into absolutely positioned divs that are hidden by
default. On mouseover, show the bigger image in an absolutely
positioned div that appears to 'float' over the page near the thumbnail.

Post again if you need help with that.

If you want users without script wont see the bigger images, don't hide
them by default and fit them into the page flow somehow.

Fixing the positioning part is really a CSS question - use absolute
positioning for the bigger image and anchor it with a relatively
positioned parent div in the right place in the document flow.

--
Rob
Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Brian Maupin | last post by:
I have a refreshing webcam shot on my site and I was wondering if there was a way I could display how many people are currently viewing it? Thanks in advance.
1
by: R.G. Vervoort | last post by:
I would like to preview the text in a text area in a popup window. Suggestions are welcome thanks roy
10
by: NH | last post by:
I have a girdview with paging enabled. How can I add a message in the footer to say "Viewing records 1-15 of 45" etc Thanks
1
by: Jck | last post by:
Could someone let me know how to get the current top row in a datagrid that is viewing by the user please? I got a datagrid connected with a datatable with 5000 records. I can use the...
3
by: pagates | last post by:
Hello All, This is a newbie follow-up to my previous newbie question.... Is there a way to view a Word document (or a PDF, or a text file, or any other file) as content for a Master Page? ...
1
by: czi02 | last post by:
first, I made a page and Ive type only my name cziarel. and name it htm1 and save it on my drive d shared files. Then ive made another page and put my pictures on the page. then ive saved also it on...
4
by: fedrok | last post by:
Hi you all. I've got a problem validating an XML file using the following Schema (I'll post only the beginning of this): ...
12
bartonc
by: bartonc | last post by:
Here's something cool that I just discovered (on IE7, I wonder about the others): I was viewing a long code block with some really long lines in it. Since the horizontal scroll bar was WAY of my...
34
by: Alan Larsson | last post by:
Is there a way i can look at the php code that is runnig a site, without any ind of admin access to the server?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.