Current location: Hot Scripts Forums » Programming Languages » PHP » how do you display an image in <title> ??


how do you display an image in <title> ??

Reply
  #1 (permalink)  
Old 06-15-04, 01:16 AM
krmoon krmoon is offline
Newbie Coder
 
Join Date: May 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Question how do you display an image in <title> ??

Any help would be GREATLY appreciated!!! I can't find a tutorial on this anywhere....

To give an example of what I am asking...if you go to ESPN.com in IE (Im not sure if it works in other browsers) you will see ESPN's logo displayed right before the URL....how on earth do you do this??

Thanks so much if anyone knows!!! : )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 06-15-04, 01:17 AM
nekeno12 nekeno12 is offline
Wannabe Coder
 
Join Date: May 2004
Location: CO
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
================================================== ==========
Script: Adding An Icon With Your URL - Two Methods

Functions: Whenever anyone bookmarks your site, an icon
will subsequently show up on their Favorites
list. When your site is visited, the icon
will also show in the URL box of the browser.

Browsers: IE5 and Later (ignored by other browsers)

Author: etLux - after Microsoft
================================================== ==========

===========
Method One
===========

Select any standard Windows icon file. The .ico file *must*
be in standard Windows icon file format, or it will be
ignored.

Rename the icon file *exactly* to: favicon.ico -- all
lowercase. No deviation from this is allowed.

Place the favicon.ico file in the 'root' directory on your
web server (where your main index page is).

Whenever your site is bookmarked, the icon will subsequently
show up on the visitor's Favorites list. When they visit
your site, the icon will also show in the URL window of the
browser.

That's all there is to it -- it's automatically picked up by
IE5 and later browsers.

===========
Method Two
===========

Insert the following LINK tag in the <head>...</head> of
your pages.

<LINK REL="SHORTCUT ICON" HREF="http://www.mydomain.com/myicon.ico">

Change the path and icon filename to correspond to the
location of the icon file on your site. The icon graphic
filename should be lowercase, no more than eight characters,
and the extension must be .ico.

As above, the file *must* be in standard Windows icon file
format or it will be ignored.

When you use this method as opposed to Method One above, the
LINK REL code should appear on any page that might be
bookmarked.

Don't forget to confirm that the icon file is actually where
you say it is in the LINK REL path!

==================================
More Information - Creating Icons
==================================

The following is an exact quote from Microsoft®:

"For Internet Explorer 5, the required size of a shortcut
icon is 16x16 pixels. To create the icon, use an icon
editor, such as the one included in Microsoft® Visual
Studio® or one of the many other icon editors available.
Regardless of the program you use, make sure you set the
editor to create an icon that is 16x16 pixels. Otherwise,
the icon will be ignored by Internet Explorer."

================
Troubleshooting
================

We've noticed occasionally quirky behavior with this IE5
feature on several systems.

In many cases the icon will not appear on your machine until
*after* you perform the following steps:

- close *all* programs but the browser
- navigate to a neutral site, off your own url
- remove any and all bookmarks (favorites) to your
site that you may currently have
- clear the History and the Cache of the browser
- reboot, clear the Recycle Bin
- reboot again, bookmark your site
- reboot [sigh] again...

================================================== ==========
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 06-15-04, 02:02 AM
krmoon krmoon is offline
Newbie Coder
 
Join Date: May 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
is there a certain permission that the icon needs to be set to? thanks so much for your help!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 06-15-04, 02:55 AM
nekeno12 nekeno12 is offline
Wannabe Coder
 
Join Date: May 2004
Location: CO
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
No I don't think so

But just in case, chmod 755
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
please help with displaying image in <title> krmoon HTML/XHTML/XML 4 06-27-04 11:12 PM
need help with upload image and getting image name to db mikewooten PHP 3 05-14-04 05:52 PM
Display a dynamic image Bonzo PHP 1 04-28-04 05:05 AM
need help with viewing uploaded image on webpage? mikewooten PHP 0 03-16-04 08:39 PM
need script to display new image, every 24 hours Dinrock JavaScript 0 01-20-04 10:56 AM


All times are GMT -5. The time now is 07:06 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.