In many it is known that IE does not work well transparency of PNG files containing them, this is one of the many flaws of IE, but because everything has a solution and this is something easy to implement and correct, there are PNG's that we can use images within the page or as funds, in both cases have the same options
Thursday, June 22, 2006
Difference Between G Lens And Carl Zeiss
their transparency in IE
In many it is known that IE does not work well transparency of PNG files containing them, this is one of the many flaws of IE, but because everything has a solution and this is something easy to implement and correct, there are PNG's that we can use images within the page or as funds, in both cases have the same options
In many it is known that IE does not work well transparency of PNG files containing them, this is one of the many flaws of IE, but because everything has a solution and this is something easy to implement and correct, there are PNG's that we can use images within the page or as funds, in both cases have the same options
Use GIF's but lost quality
- Use another browser like Mozilla Firefox and IE throwing away
- Implement a small script to fix this flaw
- For option 1 it would have bear in mind that the GIF file will not give you the quality of PNG's, besides that they only support a transparency channel, so you could not do transparent gradients.
making this script is that if the IE browser is automatically applied to a filter PNG Alpha transparency, as commented above, there is more to do but hit it, the script does it all alone:-D
<!--[if gte IE 5.5000]> <script language="JavaScript">
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
{
for(var i=0; i<document.images.length; i++)
{
var img = document.images[i]
var imgName = img.src.toUpperCase()
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{
var imgID = (img.id) ? "id='" + Img.id + "'": ""
was imgClass = (img.className)? "Class = '" + img.className + "'": ""
was imgTitle = (img.title)? 'Title =' "+ img.title +" '"' title = '" + img.alt + "'"
was imgStyle = "display: inline-block;" + img.style.cssText
if (img.align == "left") imgStyle = "float: left;" + imgStyle
if (img.align == "right") imgStyle = "float: right;" + imgStyle
if ( img.parentElement.href) imgStyle = "cursor: hand;" + imgStyle
was strNewHTML = "\u0026lt;span" + + imgID imgClass + imgTitle
+ "style = \\" "+" width: "+ img.width +" px, height: "+ img.height +" px , "+ imgStyle +"; "
+ 'filter: progid: DXImageTransform.Microsoft.AlphaImageLoader"
+ "(src = \\'" + img.src + "\\ '); \\"> \u0026lt; / span> "
img.outerHTML = strNewHTML
i = i-1
}
}
}
window.attachEvent ("onload", correctPNG)
\u0026lt;/ script>
\u0026lt;! [endif] ->
Another option is to use a PNG for funds this can be solved with the following between the head tags
:
\u0026lt;style type="text/css"> \u0026lt;! -
# background {background-image: url (
logoGDE.png
)}
* html # bottom {background-image: none; filter: progid: DXImageTransform.Microsoft.AlphaImageLoader (src = ' logoGDE.png
', sizingMethod = 'crop') background:;}
->
\u0026lt;/ style>
* html This makes set up a fund for some browsers and the same with a filter to IE must
change
logoGDE.png the background image you'll use Table
put id = "bottom"
I put in a table, if you put on the label \u0026lt;table> and overtake the table has the image edges to edges, if set to the \u0026lt;td> not.
Tested on:
www.cristovivo.com / test.html
that maybe is not the most aesthetic, but shows this hope serve them well besides that I hope your comments, this is one of the big questions that always hover in the forums.
Homecoming Shirt Sayings 32
Add free web counter
I created a simple hit counter to add on any website and easily configurable, the accountant may evolve in improvements, this is version 1 so it may take more later versions with more functions and design also features an example of the counter is as the one shown in my blog on the right side just above the logo of the blog.
I created a simple hit counter to add on any website and easily configurable, the accountant may evolve in improvements, this is version 1 so it may take more later versions with more functions and design also features an example of the counter is as the one shown in my blog on the right side just above the logo of the blog.
To add this counter to any site you just have to add a small line of javascript and configure some things, it's easy and fast, here a description:
Script to add:
\u0026lt;script src = "http:/ / www.creandowebs.com/contador.asp?user =
paginaweb.com
& tv = Visitor
& fn = Arial, Verdana & sz = 11 & bd = yes & c = 000099 "> \u0026lt;/ script>
(Note all goes into one line, cut for space) where we set
which is marked in bold. User =
paginaweb.com
the page where the counter will be, it is important to change this in order to have a unique counter for each site. Tv =
Visitor
is the text that will appear just before the visits, for example: 0202 Visitor
fn = Arial, Verdana
is (s) source (s) to use. few options: they can be Tahoma, Trebuchet MS or anyone else who uses your site
sz = 11
is the font size in pixels, the size 11 is equivalent to more or less the size 2 Options: number valid for the font size you want
bd = yes yes
if the text is bold, if you want this change it not Options: yes (bold font) no (regular font)
c = 000099
is
text color in hexadecimal value Some color: ffffff
White = Black = 000000 0000ff
Blue = Red = Green = 00ff00 ff0000
That's it, the script must be attached to the part where you want the counter to appear, I inform you that the counter is programmed to count visits using sessions, this occasion is what they are actual visits, ie if someone clicks hagarra by reloading the page or only generate a visit (If the user has enable cookies for sessions that use this.)
Subscribe to:
Posts (Atom)