Can i use a GIF animation as favicon for my website [duplicate] - favicon

This question already has answers here:
How to animate a favicon?
(7 answers)
Closed 6 years ago.
I need to get some animated effects for favicon on my site. How can i do this?. Help me

It certainly looks like you can. This blog post (now only available from the Internet Archive) from 2007 has some details on how to do it.
Create your animated icon 16 pixels high and wide.
Just add the gif as a favicon:
<link rel="shortcut icon" href="favicon.ico">
<link rel="shortcut icon" href="favicon.gif">
Firefox allows webmasters to use animated favicons and it is likely more browsers will eventually follow suit. While Internet Explorer does not support animated icons in any way, there is an easy way to code things so that you can display an animated favicon in supported browsers and a standard icon for all others.
I'm not sure whether it's a good idea though.

Related

UIWebView's Content color changed unexpectedly

I am using mathjax for loading the mathematical function, while i am loading the html content into the UIWebView some of the content color will br changed into blue color,
But i load the same html content into the browser means, it is displaying correctly
Please share if anyone have any idea about this issue,
Thanks in Advance...
In iOS, Webkit tries to recognize phone numbers and turn them into links. I'm wondering if your stacked fractions of small integers look like phone numbers to iOS. Are the blue ones acting as links, and if so, to what?
You can disable this phone-number-recognition feature by adding
<meta name="format-detection" content="telephone=no">
to the <head> of your document. Hope that takes care of it for you.

jQuery Mobile in UIWebView Clipping Content When UIWebView Isn't Full Screen

I have a UIWebView that is smaller than the full screen (specifically 540x560 pixels). My issue is that my jQuery mobile content is being cut off rather than resizing as I would expect a responsive website to do. I've uploaded a sample project with the issue here. Any ideas how to fix this?
check following tag in head section of html which tells browser to make width of viewport to same as device width
<meta name="viewport" content="width=device-width, initial-scale=1">
Remove that tag will remove horizontal scroll
EDIT:
you can not remove meta tag form http://jquerymobile.com/demos/1.1.1/docs/lists/index.html so host it on local server.
Set the width and height of the viewport to whatever the height of your UIWebView. This will register the "bottom" of the browser window and should prevent your content from being cut off if it is the appropriate height.
See here: http://developer.apple.com/library/ios/ipad/#DOCUMENTATION/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html
Ok #Kevin, only you have doing is resize your UIWebView class in KSViewController.xib. If you want to make your app a web app, only have you add your favorite framework and folder on Xcode project.
Hope this helps. :)

Website appearing left aligned on the iphone?

I've been experimenting with html5 and have nearly finished a site for a friend. I have used Paul Irish's html5 boilerplate as a template and it all works fine until I view it in the iphone. It is at this point the site left aligns itself tight to the edge. I have set the container wrapping the site to margin:0 auto as usual, but for some reason I cannot get it to stay central.
Any ideas why this might be happening?
Here is the current like to the site..
http://cynonvalleypals.co.uk.s88828.gridserver.com/
Thank you
You have set viewport via the meta tag, right?
<meta name="viewport" content="width=device-width, initial-scale=1.0">
It means iPhone will try to show your content in a 320px width viewport instead of a 980px one. Try to imagine what you will see if you open your website with a 320px width Chrome window? That's what you get in Mobile Safari.
You can debug this easily. Open a Chrome window and use developer tools to set the body's width to 320px. You will see the result. You can tune based on this setting or you can try to use other viewport setting.
try to use viewport in this way, I hope it will help you.
<meta name="viewport" content="width=1040; user-scalable=no;" />
this will fix the width to 1040 but user will not allow to zoomed. you can add user-scaleable=1 in order to to allow users to zoom content.
you try to set the width and margin-right:auto and margin-left:auto (do not use margin:auto)
Check it

Need facebook like button without count [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Facebook Like-Button - hide count?
I need facebook like button without count information. I tried it with giving 50px width. but when someone "like" the page its turn in "you liked it" and distorting the UI.
I need just like image without counr.
Thanks
Suren
Can you wrap it in div containers w/ absolute dimensions & float it. . . so the overflow wont disrupt anything.
Just give a width of 47px and it seems to works fine. I think they have changed the UI recently - now when you like it there is just a tickbox added to the like button and it doesn't distort the UI.
NB. Facebook localizes the button - so the "like" button might be in a different language. Then of course this image is not a standard width - so you cant guarantee being able to hide it by setting width of iframe or css settings.
I do not think it is possible. The whole UI is driven from Facebook and you can see all the variations here http://developers.facebook.com/docs/reference/plugins/like/
However, if you want, you may apply some CSS/JavaScript hack. The count is under uiGrid class, you may target this element and set display none after the page has rendered. In JQuery, you would $('.uiGrid').hide()
But the suggestion above is not recommended.
Here's a question with several much more detailed answers to the different ways of doing this:
http://facebook.stackoverflow.com/questions/2950172/facebook-like-button-hide-count
There are apparently a few cases where the answer is slightly different -- one for the javascript version, one with the iframe version, etc.

How can I ‘shine’ a png on the iPhone in code?

How do I replicate the effect that the app launcher uses on a square .png to show my users what their icon will look like as an app badge.
NB - I want to do this in code on the iPhone, not in photoshop on my computer.
Thanks!
edit: trying to be really clear here. How do I do this with code!
I have tried creating an overlay, but the shine apple does actually brightens the top, so just putting a png over the top will not give the same effect.
Presumably the app launcher applies some CA effects - does anyone know how to duplicate them???
Create a transparent shine overlay in Photoshop on your computer and merge the two images in code.
Short of hard-coding the shine mask, or building a mini ray-tracer, that's probably the easiest way to do it.
There's even a link to a photoshop tutorial/template here:
http://www.keepthewebweird.com/iphone-icon-psd-template/
Another more simple approach is to save your icon as a 57px x 57px PNG called "icon.png" without any shine effects, then FTP it to the root folder of a web server and create a file there called icon_test.html containing the following code:
<html>
<head>
<link rel="apple-touch-icon" href="/icon.png"/>
<title>The App Name</title>
</head>
<body>
iPhone test page
</body>
</html>
Then just browse to the icon_test.html file in mobile Safari on your iPhone, tap the "+" button in the toolbar to save the page as a bookmark, tap "Add to Home Screen", and tap "Add" in the top right. You'll then see your icon appear on the home screen, complete with Apple's shine overlay.