aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Icon for my page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Icon for my page" Watch "Icon for my page" New topic
Author

Icon for my page

manav k
Greenhorn

Joined: Oct 30, 2000
Posts: 19
Is there any way to define a ico image that associates with a particular page? i mean if someone saves the url to my webpage as a bookmark is there anyway that the image next to the bookmark should not be the standard ie image but something that i can define?
manav
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
Nope, can't change that. The icon is specefic to the operating system and the person's default browser. If I have IE as my default, and I have the IE icon as the icon for all html pages, then that is what it is going to be. I can change things to my system to make it a different icon, but you can't change someone else's system to give them a different icon. Would be similar to changing someone's wallpaper or screen saver, or sounds.
manav k
Greenhorn

Joined: Oct 30, 2000
Posts: 19
perhaps you are right bill, i am not certain. But if you have a shortcut on your desktop you can change the image associated with that shortcut by opening it in a text editor and changing the line
IconFile= path\imageName
this could be a http address
i used this method to change the icon on my desktop and made it to point to a image on webserver...the problem tho is that it doesn't work on all computers only on some...maybe it is some sort of desktop setting that some comps have switched on...like active desktop or something...i am investigation still :-)
manav
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
Still though, you are doing that on your own desktop. What you are asking is changing this on someone elses desktop. Security issues would tell you that it won't be possible, just like with Java applet you can't read or write to a client's files without first getting explicit permission.
But hey, I could be wrong. If you find out how to do this, I would love to see it, even if I never use it. Make sure you post it if you find an answer.
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
Manav k, while we greatly appreciate your posts, we are trying to implement a naming policy which can be viewed here:
http://www.javaranch.com/name.jsp
Please re-register with a name that meets these standards.
Thanks,
Bill
manav k
Greenhorn

Joined: Oct 30, 2000
Posts: 19
bill i am guessing you want me to register my "complete" last name too...coz my first name is for real!
though the naming guide says its ok to cut short a long last name
manav
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
manav k, we are trying to encourage people not to use initials for last names, so yeah, register your whole last name or an abbreviated version if it is real long. Thanks
David Rizzi
Greenhorn

Joined: Nov 24, 2000
Posts: 10
See:
http://www.favicon.com/
for how to do this (IE only)
-David
Originally posted by manav k:
Is there any way to define a ico image that associates with a particular page? i mean if someone saves the url to my webpage as a bookmark is there anyway that the image next to the bookmark should not be the standard ie image but something that i can define?
manav

 
Consider Paul's rocket mass heater.
 
subject: Icon for my page