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

Is there a way to modify the "view image" option?

I have a website that contains lots of pictures on a single page. In order to make it so that it doesn't take forever for the pages to load, I have small picture files on my web host's server. Each picture is only 244 by 200 pixels. However, now that I use small pictures, if a person right-clicks on any of the pictures and chooses the "view image" option from the menu, they can only see the small picture instead of the picture in its original size. So here's my question. Is there any way that I can make it so that when someone uses the "view image" option, they are shown a picture that has been saved as a different name on my web host's server? That way, I can keep the small pictures on the main page, and have a different picture used if they right-click and use the "view image" option.

I realize that I could just have the images saved in their original size on the server, and use the "width" and "height" options to specify a smaller size when using the "<img>" tag. However, this slows the page way down when it tries to load. Spreading the images out over multiple pages is a possible solution. But I'm really trying to avoid this since a big goal is to have easy access to lots of the pictures at once on a single page.

Is this possible? Can I control the right-click/"view image" option with HTML by making it go to a different picture source?

I realize that I could make it so that the user can just click the picture and be taken to a different page that displays the original picture with its full size. But my site is set up so that if someone clicks the picture, they'll be taken to a predesignated site that doesn't always show the picture. So I'm trying to avoid this option also.

Thanks so much for your time and willingness to help. All responses are greatly appreciated.
Feb 18 '12 #1
2 1659
Dormilich
8,658 Expert Mod 8TB
you might be interested in lightbox.
Feb 18 '12 #2
Thank you for telling me about "lightbox". I've incorporated it into my site, and my site is much better for it. Thanks for your help.
Mar 3 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Roger Shrubber | last post by:
I have a page with images that the user can drag from one frame to another. I need them to see a "ghost image" of the image they are dragging, while the original stays put. I use the onmousemove...
18
by: Lorem Ipsum | last post by:
interesting! I just found a page in which Explorer's View Source does nothing! How did they do that?
0
by: Brian Kitt | last post by:
I am developing my website in C#, and making all buttons "Input Type=Image", because I want rollover capabilities. They work perfectly, as long as the user is using the mouse. I have one web page...
2
by: Benny Raymond | last post by:
I was looking through the options and only saw this type of default for XML and HTML - but what about C# forms and what not - is it possible to default these to View Code? Thanks, Benny
3
by: Bri | last post by:
AC97 on WinXP, Image control on a Form and on a Report. I have followed the advice on the following MVPS page: http://www.mvps.org/access/api/api0038.htm This states that after changing the...
1
by: mmcc128 | last post by:
Currently using the "document.images" to "preload" images - not for future pages, but for the page being loaded. I got it from http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm Its a...
2
by: brianflannery | last post by:
Greetings! My situation is this. I currently have a database of which in a form displays jpeg pictures (one at a time) which are linked to the db and stored in a separate folder. I have set up a...
6
by: jluo | last post by:
I found a problem with my application when using "innerhtml" to replace the content from the server after making an ajax call. The display is perfectly correct, but when I use "view source" on the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.