473,396 Members | 1,743 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,396 software developers and data experts.

Image spreading out

I am using javascript to swap images when the mouse is over a "button"
image. I created these with Fireworks and when I look at them in window
explorer I see they all (all three "states") are relatively the same size
within 1-2 pixels. This is confirmed by checking the properties with the
mouse over them.

Yet when I "hover", I get a wide image and not the one I expected. I used
Visual Interdev to build the site and checked their additional storage area
(_vti_cnt) and replaced the images here and the higher directory using FTP
as VI seems to consider what you do as a suggestion that doesn't have to be
followed.

Any ideas on how to force the images to be the size I set in Fireworks?

The site is www.mokenamartialarts.com. As we have a demo tomorrow, I'd like
to get this cleaned up before then as many people might visit the page after
it.

TIA, Lee
Jul 23 '05 #1
1 1212

Lee David wrote:
I am using javascript to swap images when the mouse is over a "button" image. I created these with Fireworks and when I look at them in window explorer I see they all (all three "states") are relatively the same size within 1-2 pixels. This is confirmed by checking the properties with the mouse over them.

Yet when I "hover", I get a wide image and not the one I expected. I used Visual Interdev to build the site and checked their additional storage area (_vti_cnt) and replaced the images here and the higher directory using FTP as VI seems to consider what you do as a suggestion that doesn't have to be followed.

Any ideas on how to force the images to be the size I set in Fireworks?
The site is www.mokenamartialarts.com. As we have a demo tomorrow, I'd like to get this cleaned up before then as many people might visit the page after it.

TIA, Lee


Just from a quick look, it appears as if you left out a directory in
your rollover script:

document['home'].src = "../images/Homemenu.gif";

....should be

document['home'].src = "../images/menu/Homemenu.gif";

Similarly,

document['yellow'].src = "../images/Yellow.gif";

....should be

document['yellow'].src = "../images/belts/Yellow.gif";

It's really inefficient to gang-roll images like that, so I'd suggest -
when you have more time - working in a simpler rollover routine.
Millions around, some even using pure CSS, no JavaScript.

Jul 23 '05 #2

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

Similar topics

9
by: Pierre Tremblay | last post by:
Hi! I am trying to display an image in my html document. The document contains the following line: <td class="Input"><img...
3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
2
by: Tjerk | last post by:
Hello all, I have the script below to change an image depending on the date upto january it worked fine but then it just stopped working does anybody have an idea how I can make it work again or...
3
by: Matthias Kaeppler | last post by:
Hello, this more a question about good practice than it is about the C++ language itself, but still... my question is this: I have a class representing the main window of my application which...
15
by: Anand Ganesh | last post by:
HI All, I have an Image. I want to clip a portion of it and copy to another image. How to do this? I know the bounding rectangle to clip. Any suggestions please. Thanks for your time and...
2
by: Mohammad | last post by:
Hello. How I can write a program that save a high color image as 256 color or fewer with .BMP format , just like Microsoft Paint. I want to write this Program with C# .NET , NOT with MFC . Thank...
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.