Hi all- anyone know how to format for AIM to get the inverted colors you can do from the official client?? have been trying but cant figure it out! Also wondered if there is a way to get the 'raw' messg from the network-- Oscar seems to do some translating on its own. Thanks! the info here is really good. Regards Henry
malefactor: It's generally HTML standard to always quote attribute values, even if they are plain alphanumeric and don't need them. Most browsers (including AIM's internal browser) are tolerant of missing quotes but you should still use them.
darkmonkey was explaining how the HTML code should look for what you posted. And darkmonkey's example would work perfectly fine if you apply some common sense or put the whole thing in apostrophes:
Code:
# Escape the quotes<br />$reply = "<html><body bgcolor=\"black\"><font color=\"white\">Bot's message here</font></body></html>";<br /><br /># Apostrophes<br />$reply = '<html><body bgcolor="black"><font color="white">Bot's message here</font></body></html>';<br /><br /># Or even apostrophes + a variable!<br />$reply = '<html><body bgcolor="black"><font color="white">' . $someVariable . '</font></body></html>';
And he's right, know what you're posting about before you post it. _________________ Current Site (2008) http://www.cuvou.com/
Please don't spread bad advice on this website. If you want to create poor html or code, do it on your own time.
Using quotes for attributes is part of the standard. Deviating from the standard is bad form, especially if you are doing work for clients who expect their sites to conform to standards.
As for optimizing, I suppose if you have a page with a couple thousand attributes and you want to save a millisecond of download time, you could skip the quotes.
Using the BODY tag doesn't seem to work, but we figured out the correct html by dumping the raw message that OSCAR receives with an incoming IM from the AOL client.
Using produces the desired effect. Not sure if this is proper html, earlier I had tried to no effect.
Using the BODY tag doesn't seem to work, but we figured out the correct html by dumping the raw message that OSCAR receives with an incoming IM from the AOL client.
Using produces the desired effect. Not sure if this is proper html, earlier I had tried to no effect.
Thanks for your help everyone. [right][snapback]48173[/snapback][/right]
Yeah, isn't real HTML, it's something AIM added.
The difference between and is the amount of space that the background color applies to. For example, if you use the standard AIM client from AIM.com, more of your buddies have than have .
With the tag, the background color completely covers the space of their message, from side to side. But only highlights behind their text (if you talk to a Trillian user, Trillian only uses ).
Anyway, just in my opinion looks nicer than , but if the tag doesn't work for some reason you could always just use both of them. So then AIM clients that support will see it like the tag was meant to be seen, but users of lesser clients will still see the background just behind the text:
^^ Something else that's cool with is that you can even define "link" and "vlink" (I think only the standard AIM client supports this). So for example, any time my bot sends a hyperlink, it appears in red text instead of blue. _________________ Current Site (2008) http://www.cuvou.com/
If you knew that all along then why didn't you post that in your firest message, rather than picking over irrelevelant details? [right][snapback]48176[/snapback][/right]
Maybe because ALL clients should support that. Even Trillian does. Trillian takes and converts it to and displays it just as it would if you had used to begin with.
The only clients that wouldn't support would be some third rate open-source AIM client that's at version 0.1.001 and the creators don't know a bit of HTML to begin with besides , , , and .
And if you're not using a third-rate client and your official AIM client doesn't support , your computer either sucks or you're on AIM 1.0 and AOL never invented the tag way back then or something. _________________ Current Site (2008) http://www.cuvou.com/
Joined: 19 Jul 2004 Posts: 556 Location: Los Angeles, CA votes: 1
Posted: Wed May 04, 2005 7:37 am Post subject:
QUOTE(brother @ May 3 2005, 11:12 AM)
Many webdesigners 'optimize' loading times by ripping out the quotes to make filesize smaller. [right][snapback]48171[/snapback][/right]
In many browsers tolerating poor html actually makes them run slower because the browser has to try to figure out what the html "should" say.
another way to optimize is like Google and remove any tab formatting or extra line returns. This makes for poor readability, but smaller code :S _________________ [ matt ]