1
seppel
Re: Javascript on entire Site
  • 2005/9/14 5:54

  • seppel

  • Just popping in

  • Posts: 7

  • Since: 2004/1/19


, thanks



2
seppel
Re: Javascript on entire Site
  • 2005/9/14 5:44

  • seppel

  • Just popping in

  • Posts: 7

  • Since: 2004/1/19


I'm not the author of this script. I just found it when searching for a solution of this PNG-IE Problem, and thought it could be useful. I have tested it with IE 6.0 and Firefox an it works fine in both Browsers.



3
seppel
Re: Javascript on entire Site
  • 2005/9/12 12:15

  • seppel

  • Just popping in

  • Posts: 7

  • Since: 2004/1/19


Here's the script:

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 + "' " : ""
var imgClass = (img.className) ? "class='" + img.className + "' " : ""
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
var 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
var strNewHTML = "<span " + imgID + imgClass + imgTitle
+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
+ "filter:progidXImageTransform.Microsoft.AlphaImageLoader"
+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
img.outerHTML = strNewHTML
i = i-1
}
}
}
window.attachEvent("onload", correctPNG);



4
seppel
Javascript on entire Site
  • 2005/9/12 7:09

  • seppel

  • Just popping in

  • Posts: 7

  • Since: 2004/1/19


Hi,

i want to use a Javascript that solves the Transparency-Problem of IE with png Images on my Xoops-Site.

Where do i have to put this script ?



5
seppel
Create PDF from article functionality
  • 2005/5/18 7:27

  • seppel

  • Just popping in

  • Posts: 7

  • Since: 2004/1/19


Does anyone know what module is used on this site for the article system. I just would have the functionality to generate pdf files from articles on my site too. Or is this a general feature from XOOPS ?

thanks



6
seppel
Re: No Theme.html
  • 2005/2/16 11:26

  • seppel

  • Just popping in

  • Posts: 7

  • Since: 2004/1/19


If someone has updated this theme to 2.0 Version with theme.html i would be very interested in it, cause i use this Theme too, and i just found out where all my Problems with some Modules etc. come from




TopTop



Login

Who's Online

164 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 164


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits