Jump to content

.PNG, authoring and Internet Explorer


SoulSe
 Share

Recommended Posts

  • Replies 40
  • Created
  • Last Reply

Top Posters In This Topic

The LZW compression patent has expired and as far as I know UNISYS hasn't extended it.  In other words, GIF is now public domain.

 

Glitz.

That may be true, doesn't stop it from being a crappy format.

Link to comment
Share on other sites

I hate IE!

 

MottS

YEAHHHH!!! That's the spirit!!!!!!!

To relieve M$ related frustration try the following

as root type

urpmi xbill &&

xbill

What level can you get up to?

 

James

 

 

I got up te level 30, 50-thousans-and-something; then it froze on me. I didn't read the message though, maybe it was over?

 

Darkelve

Link to comment
Share on other sites

Paul: I feel really stupid, I can't seem to get that code of yours working. I really don't know too muh about php yet, so I don't know what to insert where.

 

EDIT: PHP wasn't running properly on my machine :roll:

 

Let me sort that out before I complain...

Link to comment
Share on other sites

ok, php is going.

 

I get the image displayed with the first bunch of code you gave me, but I can't figure out the mouseover switch.

 

Here is what I was using:

<script language="JavaScript">

img0_on = new Image(45,45);

img0_on.src="images/home_on.png";

img0_off = new Image(45,45);

img0_off.src="images/home.gif";



function over_image(parm_name)

   {

       document[parm_name].src = eval(parm_name + "_on.src");

   }

function off_image(parm_name)

   {

       document[parm_name].src = eval(parm_name + "_off.src");

   }

</script>

So then I added your bit to load the filter, and changed my code (as above) to include the bits you suggested. No go. I'm sure I'm doing something wrong by being dumb.

 

Here is what I had:

<?

// usage:

              put_png("images/home.png", 45, 45);

function put_png($path2img, $width, $height)

       {

       global $HTTP_USER_AGENT;

       $suffix = "10px"; // this is for style size ... example 10px

       if (ereg("MSIE", $HTTP_USER_AGENT) && ereg("Windows", $HTTP_USER_AGENT) && !ereg("Opera", $HTTP_USER_AGENT))

               {

               echo"<div id="stoopid_MS1" style="position:relative; height:$height$suffix; width:$width$suffix; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='$path2img',sizingMethod='scale');"></div>";

               } else {

               echo"<img src="$path2img" width="$width" height="$height">";

               }

       }

?>

<script language="JavaScript">

img0_on = new Image(45,45);

img0_on.src="images/home_on.png";

img0_off = new Image(45,45);

img0_off.src="images/home.gif";



function over_image(parm_name)

   {

       document[parm_name].src = eval(parm_name + "_on.src");

       document[parm_name].className="stoopid_ms2";

   }

function off_image(parm_name)

   {

       document[parm_name].src = eval(parm_name + "_off.src");

       document[parm_name].className="stoopid_ms1";

   }

</script>



<a href="index.php" onmouseover="over_image('img0');" onmouseout="off_image('img0')"><img src="images/home.png" class="stoopid_MS1" border="0" name="img0" alt="Home">

e">

Ok, so first off, I should have that first set of code for the over image right? But I can't figure it out and I get errors all over the place.

 

I should really try and find some time to learn php :roll: - feel very stupid right now.

Link to comment
Share on other sites

Badly translated ... if someone else wants to translate this or find it in English feel free.

Source LOGIN: No. 108

*AOL time warner the provideor of international internet access (comment how can it pretend to be international with a name like that???) with Netscape and the messaging software AIM will finish to have the skin of Microsft and the sound of MSN in Internet Exporer and MSN messenger.

The old companion of the SUN route has been harassed by the vengefuill actions of American Justice. but loves to change for thebnetter the attitude and rhythm of the governements. It hasnøt always resed and reused the formula of Bill Gates to be disloyal.

 

But, starting in june Micro$ suddenly calmed the difficulites by *Giving a check of 750 Million dollars.

For that AOL immeiately abandoned netscape to be the best promoter of Internet Explorer at the centre of its internet suite and worked to make AIM compatible with MSN instant messenger and has the pleasure and 'privelgide'to provide music and videos under copyright in the format of Windows media player 9 ealier than Quicktime or Real.

Link to comment
Share on other sites

The LZW compression patent has expired and as far as I know UNISYS hasn't extended it.  In other words, GIF is now public domain.

 

Glitz.

That may be true, doesn't stop it from being a crappy format.

 

From a technical standpoint it was a relatively well thought out and extensible format that lent itself well to streaming similar to mp3 or ogg. I implemented an encoder once for the GIF '89 format (circa 1990) and found the LZW compression interesting. I don't remember anymore, however, if the number of palette entries was limited to index sizes of 8 bits or if larger indexes could be specified. It's not great for true colour images though. I switched to .TGA files for that.

 

Glitz.

Link to comment
Share on other sites

I was flipping through some floppies a little while back, and found I still had GIFs of friends from Chat in the early '80's. Monochrome... about 240x240 I think, maybe even lower resolution.

Link to comment
Share on other sites

Ok, I've given up.

 

There are several hacks to get the images displayed, but rollovers are a nightmare.

 

So I've opted for solid background pngs, at least then I don't trash the format. Just reworked my background (doesn't look as cool now as it would've).

 

It is disgusting how bad IE really is, there IS NO WORSE BROWSER - I dare anyone to prove me wrong...

Link to comment
Share on other sites

It is disgusting how bad IE really is, there IS NO WORSE BROWSER - I dare anyone to prove me wrong...

 

Oh, I sense a religious war coming up! Maybe I'll try to prove it factually. Hey, with its record and tracks left, it should be possbile, no? After all, a 200-pound disabled monster should leave tracks somewhere ;)

Link to comment
Share on other sites

It is disgusting how bad IE really is, there IS NO WORSE BROWSER - I dare anyone to prove me wrong...
*grabs something out of the garbage, labels it "G Browser", proves SoulSe wrong*
Link to comment
Share on other sites

It is disgusting how bad IE really is, there IS NO WORSE BROWSER - I dare anyone to prove me wrong...
*grabs something out of the garbage, labels it "G Browser", proves SoulSe wrong*
At least G Browser won't crash and ask you if you would like to notify its creator of the crash.

 

So much for your proof.

Link to comment
Share on other sites

It is disgusting how bad IE really is, there IS NO WORSE BROWSER - I dare anyone to prove me wrong...
*grabs something out of the garbage, labels it "G Browser", proves SoulSe wrong*
At least G Browser won't crash and ask you if you would like to notify its creator of the crash.

 

So much for your proof.

you, it won't crash because it won't even start! I.E. atleast does SOMETHING, even if it just always crashes ;-) :-P
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share


×
×
  • Create New...