Webmaster Key - Discussion Forums


Welcome, Guest. Please login or register.
Did you miss your activation email?
February 09, 2012, 03:07:31 AM

Login with username, password and session length
Welceome to Forums!

Important information for guests and new members:

In order to understand the full benefits of becoming an active member of this forum, please review the following information on guest and new member restrictions. These forum changes have been prompted by an overwhelming and unreasonable amount of bot postings and incoherent guest spam messages. We wish to prevent these events from happening in the future and make our community a more comfortable place for all of our members.

For guests:

Guests are not allowed to open new topics, polls, or posts attachments.
If you wish to open up new discussions on this forum, we encourage you to register.

For new members:

New members with less than five posts are not allowed to modify additional profile information such as avatars, contact information, biographies, and signatures. However, new members are encouraged to post their own topics or reply to topics initiated by other members. Become active on the forums and 5 posts should be an easy task!

We are a diverse community with members from all over the world. We encourage new ideas and interesting conversation. Do not be afraid to post webmaster/computer-related questions or problems, as our active members are always willing to help when they are able. Interested? Join us.

+ Webmaster Key Forums
|-+ General Discussion
| |-+ Tech Corner
| | |-+ HOWTOs Library
| | | |-+ HOWTO make image disappear when it is selected(in InternetExplorer browsers)
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print
Author Topic: HOWTO make image disappear when it is selected(in InternetExplorer browsers)  (Read 5718 times)
SensoVision
Administrator
Veteran
*****
Posts: 5 857


I'm proud user of Debian GNU/Linux OS


WWW
« on: June 26, 2005, 11:52:55 PM »

Some days ago member of this forum donecweb, show me picture with very interesting effect , when you open this image in IE browser and select it with the mouse part of the image just disappear and invisible part of the image become visible. After close examination I've find out how this is achieved and decide to share it with others.
here is small demo image of what you could get in result, just open this page with IE(from Windows OS, if you run IE through Wine as I do, it wouldn't work because Linux select things in a different manner).

this eye is just example, to demonstrate how it works. use your imagination and you'll be able to get much more interesting images, the only thing you need to remember that to achieve best effect it's better to use two same images with different elements which isn't presented on the one image, this way you would be able to blend images so hidden one wouldn't be very visible.
so do you like this effect?  Roll Eyes if so let's proceed.

To achieve such effect you'll need some image editor like GIMP or PhotoShop, you can actually use any image processing program like Corel Photo Paint, Paint Shop Pro or any other imaging program which would let you to work with layers and selections. Since my OS is Linux I'm using GIMP for editing purposes, and this image would be made with it as well.

1. First you need to obtain grid which is used to select images in IE browser, you may do this by opening clear white picture, after you do this select this image and just hit print screen, after this just save it as TIFF, PNG or other image format which doesn't loose image information, don't use JPEG as it would smooth edges of the grid and this is totally not acceptable in our situation.
If you don't have a browser with you or just lazy to get this picture, feel free to use one used by me it's already have white regions made transparent. so you can skip few actions.


2. On the next step you'll need to make white spaces on this greed to be transparent, to do this open your file with grid in image editor and Zoom it so you can clearly see white and black squares. Now you need to choose tool "Select by color" and apply it on the white spaces. If you're in GIMP just hit Shift+O and this would active tool, after this just hit on white square and you'll see all white squares to be selected.
you can check this picture to see how it's should look like: http://forum.weblamp.net/HOWTO/Screenshot-1.jpg
Once you selected all white parts of the grid just clear them by CTRL+K or Edit -> Clear

3. Now let's put this all together. File>Open as a Layer or simply hit CTRL+ALT+O and choose eye.jpg


Since I'm going to draw "cat eye" over my own eye I need to create empty layer between grid.png and eye.jpg
If you don't see layers hit Dialogs -> Layers or CTRL+L this would bring Layers box, which currently should look like this:


If you're wish to use other image instead of drawing something just upload it instead of creating empty layer, than just cut selected regions(where previously was white squares) and you'll be ready to see result if make greed layer visible.

4. Check if you still have selection of the places where was white squares. if not, just select them again and hide grid.png layer. Make middle layer active and go to View -> Show Selection or hit CTRL+T in order to hide selection marks so you can see picture more clearly.
Now you're ready to paint, just select brush or other tool and try to paint something. Please note that if you enlarge image which you paint would look dotted, it's because you're painting over selection and only spaces where was white squares are filled with color.
BTW here is image you can use if you're lazy, it's copy of my middle layer:


if you would like to see how picture would look in IE just make grid.png layer visible for the moment and you'll get idea what image would looks like in browser.

5.Once you finished with drawing, you could experiment with transparency of middle and bottom layer in order to blend them better. When you'll be satisfied with results you'll need to save your final picture to file, just don't choose JPEG compression(PNG or GIF would work) otherwise picture wouldn't work like it should.(before saving don't forget to make grid.png layer invisible).

Seems I've told everything I know, hope this tutorial would be helpful to someone. If you find it helpful I'll appreciate if you share pictures made using this methods here Smiley

Comments and suggestions are very welcome!
« Last Edit: November 22, 2005, 09:46:47 AM by SensoVision » Report to moderator   Logged

Denis
Queen Bee
Mother of All
Administrator
Veteran
*****
Posts: 2 624


Buzz, buzz!


WWW
« Reply #1 on: June 27, 2005, 12:35:38 AM »

Awesome! Very interesting... Grin
Report to moderator   Logged

SensoVision
Administrator
Veteran
*****
Posts: 5 857


I'm proud user of Debian GNU/Linux OS


WWW
« Reply #2 on: June 27, 2005, 01:02:37 AM »

Rachel, I'm sure you could come out with something much better than I did Smiley
Report to moderator   Logged

Denis
Queen Bee
Mother of All
Administrator
Veteran
*****
Posts: 2 624


Buzz, buzz!


WWW
« Reply #3 on: June 27, 2005, 01:06:47 AM »

I'm going to have to do this for fun sometime... Wink
Report to moderator   Logged

SensoVision
Administrator
Veteran
*****
Posts: 5 857


I'm proud user of Debian GNU/Linux OS


WWW
« Reply #4 on: June 27, 2005, 01:08:35 AM »

just don't forget to share it with us Wink I'll be waiting for it.
Report to moderator   Logged

Denis
donecweb
Administrator
Veteran
*****
Posts: 1 303


DonecWeb


« Reply #5 on: June 27, 2005, 06:01:57 AM »

Thanks for the tutorial Denis. I tried it and with PSP I could not use color to select all the black squares and I tried several settings it either selected all the picture or just one little square. So I tried GIMP and it selected it but when I pasted it the image took on a moving effect of white and black lines diagonally switching places but there was just a second before this happen that I saw it work so I will just need to mess with it some. BTW would it be acceptable to place a copy of your tutorial on my site with a link to your site and if so what page would you like me to use?

DonEc
Report to moderator   Logged

DonEc Web

Links and accurate information provide the best answer, while garbage in provides garbage out.
SensoVision
Administrator
Veteran
*****
Posts: 5 857


I'm proud user of Debian GNU/Linux OS


WWW
« Reply #6 on: June 27, 2005, 01:00:22 PM »

Sorry about PSP, I didn't work with it for ages so don't even remeber what tools it had Tongue BTW you should select white squares rather than black ones(if you used image provided on this site than white squares is already deleted and spaces on thjeir places are transparent.

If I understand you correctly it could be that grid layer is shifted a bit, if you used pictures provided here it shouldn't be happen(of course if you didn't move any layers or croped them). If you generate your IE grid just try to use image from the top pixels, this way you'll be sure that your image would look correctly both in image editor and browser and you won't need to crop it to match browser.

sure I never mind to distribute things I wrote, the only thing I asked for, is a link to original post, so feel free to make a copy(even a full one if you like) and put it on your site. Actually I would appreciate if you do this since it could bring us a bit more visitors Wink
Report to moderator   Logged

Denis
donecweb
Administrator
Veteran
*****
Posts: 1 303


DonecWeb


« Reply #7 on: June 27, 2005, 08:47:18 PM »

Would you like the link to be to the forum or somewhere else and if the forum what page?

I had tried the use of your example and I tried to select the black color because it was the only color. Also I don't know of a way to select a color other than clicking on it with the selector in either program. I would like to be able to just select all the parts with say a certain #000000 code, but I've never seen this. I did not crop the image or even move it. I also have not gotten back to it.

DonEc
Report to moderator   Logged

DonEc Web

Links and accurate information provide the best answer, while garbage in provides garbage out.
SensoVision
Administrator
Veteran
*****
Posts: 5 857


I'm proud user of Debian GNU/Linux OS


WWW
« Reply #8 on: June 27, 2005, 09:42:30 PM »

as for selecting by hex code of color I don't think that it's possible, at least not in GIMP. As for linking, feel free to put URL to any page you'd like whenver it some post or main page of our community .

BTW I've attached file with GIMP project so you can review it with layers and so on. http://forum.weblamp.net/HOWTO/eye.xcf.rar
Report to moderator   Logged

Denis
donecweb
Administrator
Veteran
*****
Posts: 1 303


DonecWeb


« Reply #9 on: June 27, 2005, 10:13:27 PM »

Thanks Denis

DonEc
Report to moderator   Logged

DonEc Web

Links and accurate information provide the best answer, while garbage in provides garbage out.
Queen Bee
Mother of All
Administrator
Veteran
*****
Posts: 2 624


Buzz, buzz!


WWW
« Reply #10 on: March 02, 2006, 03:15:05 AM »

I told you I would get around to it!  Grin
See my amazing Warrior Hamster in IE:



* HamsterZZZ2.gif (19.74 KB, 242x278 - viewed 245 times.)
Report to moderator   Logged

SensoVision
Administrator
Veteran
*****
Posts: 5 857


I'm proud user of Debian GNU/Linux OS


WWW
« Reply #11 on: March 02, 2006, 01:23:18 PM »

nice idea Rachel! your warrior is cool Wink I'm glad that my howto was useful, hope that we'll see more images like this in future.
Just wonder is it your hamster?
Report to moderator   Logged

Denis
Queen Bee
Mother of All
Administrator
Veteran
*****
Posts: 2 624


Buzz, buzz!


WWW
« Reply #12 on: March 02, 2006, 05:50:25 PM »

He is a cutie, but he's just a stock photography hamster... I can't claim him. Tongue
I think it would be funny to put a few more small rodents into super outfits. Wink
Report to moderator   Logged

Pages: [1] Go Up Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print 
+ Webmaster Key Forums
|-+ General Discussion
| |-+ Tech Corner
| | |-+ HOWTOs Library
| | | |-+ HOWTO make image disappear when it is selected(in InternetExplorer browsers)

Jump to:  
« previous next »


Our Partners
RelmaxTOP Ranking System Web Hosting RelmaxTOP Ranking System
Staff Sites
12Noon[12Noon Gallery] Andy[Urgentclick]
Tamuril[Tamuril's Digital Art Exhibit] Sensovision
Powered by MySQL Powered by PHP We are hosted by Relmax Inc. |Our Privacy Policy | Sitemap
Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
Forum design by Tamuril © 2005.
Valid XHTML 1.0! Valid CSS!