Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu

Cool Rules

Client User Group
HTML, CSS and XML, Site Design, Write Once!
IE3, IE4, IIS, NS3, NS4
Server User Group
Active Server Pages
Cross-Browser DHTML, HTML Enhancement
HTML, Server Scripting

Sponsored Links
Developer's Paradise : Inside Technique :
Cool Rules
Submission by SiteExperts Staff

Go to the resource:
Cool Rules

Add to Assistant

Short Description
Create cool horizontal and vertical cross-browser rules using JavaScript. No images required.

Long Description
Create cool horizontal and vertical cross-browser rules using JavaScript that can run on the client or server.

Scott Isaacs
Submission URL
Submission Date
Apr 1,1998

Discussion and Rate this Resource
Overall Rating: 4.2

fernando vp on Dec 3, 1999 at 6:53:11 PMRating: 4
This is ok.
Jerome on Aug 22, 1999 at 3:01:11 PMNo Rating

Damn, Wish I'd thought about this long ago!

This code does point out one of my pet peavs under IE, Javascript syntax ends statements with a semicolon Bill!

The problem of horizontal lines under Netscape are fixed by adjusting the height of the GIF which doesn't cost anything to put in so the crossbrowser test can also be a mute point. 

The Intermittent problem where Netscape refuses to render the page after this rule is caused by the absence of </TR> tags.  Without them, Netscape gets confused and can't resolve table heuristics.

blue_rhino on Mar 23, 1999 at 8:41:24 AMRating: 3

Good idea. It's got my mind whirling about more options.

But as for your last three optional arguments - how do you know which one(s) the user wants to pass in? You could assume that if they only wanted to specify the last option then they would also specify the default values for option 6 & 7 but how do you know?

One way would be to take an example from the method that has a number of optional arguments. Your user would need to call the function specifying the optional arguments as "crossbrowser=1" etc. then in your function you just need to write:

if (arguments[5] != null)

and the variable will already be declared. Of course you could also write in some case checking code to make sure that they used the same upperCase/lowerCase characters that you want.

Union Town on Mar 10, 1999 at 4:49:23 PMRating: 4
Scott seems to be a little bug here it came up with the same error as my friend above.  I think the idea is really very eye catching and would be great on a page that it was suited for. let me know when you get it fixed i am interested for sure :)
Union Town on Mar 10, 1999 at 4:47:00 PMRating: 4
judym on Mar 2, 1999 at 10:00:51 PMRating: 4

when I ran the code I got the following error which I was unable to resolve

Line 7

Char 14

expected ";"

obviously I think its good otherwise I wouldn't have tried to use  it 

Most Recent Ratings/ Comments

To rate and comment on a resource, you must first logon.

If you are not registered, please register yourself to become a member of the

User Name

Copyright © 1997-2008, LLC. All rights reserved.