[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

possible patch to WML





Hi.

I'm a newbie web designer, and a newbie to WML, so there may be good
reasons why WML works the way it does, but I would like to propose a
patch anyway:

--- cut here ---
--- page.wml.orig	Fri Sep 29 14:02:36 2000
+++ page.wml	Wed Oct  4 19:19:20 2000
@@ -33,10 +33,10 @@
 </head*>
 <body*<if <get-var background /> " background=\"<get-var background />\"" "" />\
       <if <get-var bgcolor /> <group <ifeq "<get-var bgcolor />" "none" "" " bgcolor=\"<get-var bgcolor />\"" /> /> " bgcolor=\"#ffffff\"" />\
-      <if <get-var text /> " text=\"<get-var text />\"" " text=\"#000000\"" />\
-      <if <get-var link /> " link=\"<get-var link />\"" " link=\"#333399\"" />\
-      <if <get-var alink /> " alink=\"<get-var alink />\"" " alink=\"#9999ff\"" />\
-      <if <get-var vlink /> " vlink=\"<get-var vlink />\"" " vlink=\"#000066\"" />\
+      <if <get-var text /> <group <ifeq "<get-var text />" "none" "" " text=\"<get-var text />\"">> " text=\"#000000\"">\
+      <if <get-var link /> <group <ifeq "<get-var link />" "none" "" " link=\"<get-var link />\"">> " link=\"#333399\"">\
+      <if <get-var alink /> <group <ifeq "<get-var alink />" "none" "" " alink=\"<get-var alink />\"">> " alink=\"#9999ff\"">\
+      <if <get-var vlink /> <group <ifeq "<get-var vlink />" "none" "" " vlink=\"<get-var vlink />\"">> " vlink=\"#000066\"">\
       <if <get-var onload /> " onload=\"<get-var onload />\"" "" />\
 >
 <set-var __i=0 />
--- cut here ---


Basically, all this patch does is let you *not* set the text, link, alink
and vlink colors on the <body> tag.  You have always been able to skip 
setting the bgcolor by specifying the color "none", this just extends
that functionality.

I have been told that if you set one of these, you should set all
because you don't know how the user has set up their defaults on their 
browswer and your choice of colors may be bad for what they have
choosen.


Thoughts and suggestions are welcome.


-wayne

______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com