URL Parameters for Dynamic JS and CSS





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 3 4 5 6 7 8 9  ...  15 16 Next »
9
Date Submitted Thu. Feb. 8th, 2007 10:05 AM
Revision 1
Helper dohpaz
Tags "web safe colors" | JavaScript
Comments 0 comments
I had searched high and low for a way to generate a palette of web-safe colors. Despite Google's best efforts, what I had found was lacking for my needs. So, I decided to write a library that would generate all 216 web safe colors, and then allow me to manipulate those colors in any way that I chose.

If anybody is curious as to why I would want to do something so... simple, it is because I needed a very light-weight color picker, and didn't want to mess with any fancy options.
14
Date Submitted Sun. Jan. 28th, 2007 1:18 PM
Revision 1
Scripter Fordiman
Tags JavaScript | json | sort
Comments 0 comments
Flexible sorting algorithm based on Quicksort with extra functionality, such as:
- Direction (ie: ascending or descending)
- Sort-by-path (eg: item.name, item.name.firstName or item[5])
- Sorting function (returns true if two items are already sorted)
- Type checking
- All constants and support functions are members of the Sort() function
- Testsuite with hooks for cscript and in-browser javascript, so you can tweak and optimize, and make sure it still works
- Environment agnostic (can use with, say, SpiderMonkey or .Net's jsc)
8
Date Submitted Thu. Jan. 11th, 2007 9:47 AM
Revision 1
Scripter Casper42
Tags ASPX | SQL | VB.NET
Comments 2 comments
This routine will get an image stored in a SQL database (IBM Informix shown here) as a BLOB and return it to the screen.

To place this on an HTML page simply add

I have an MD5 hashed version as well, but can't share that...(So you can have encrypted id's passed)

Have fun,
Jeremy
7
Date Submitted Thu. Jan. 11th, 2007 8:47 AM
Revision 1
Scripter Casper42
Tags ASPX | C | CSharp
Comments 3 comments
This little number will allow the contents of other pages to be included or embedded into the rendered HTML of an aspx page. Using the WebClient class from the .NET framework, you can conditionally load pages, even manipulate the HTML before it is rendered and in this example, fill in forms and execute javascript actions.

The following example shows how to auto-login to an Exchange Server - this was something requested for inclusion into our portal, but I left out the logic that pulls/decrypts the real password - for obvious reasons.

Enjoy!
~Jeremy
24
Date Submitted Sun. Dec. 24th, 2006 7:10 PM
Revision 1
Beginner bhmahler
Tags HTML | JavaScript | PHP
Comments 4 comments
This is a PHP and JavaScript Image gallery that I created. There are 2 uses for this.
1.) You can save it as index.php and place in a folder containing images and it will display the images in that folder.
Example:
place index.php in images/folder
http://yoursite.com/images/folder/
This will display all images in that folder

2.) Pass in the path to the folder to display in the url
Example:
Save as imagegallery.php
http://yoursite.com/imagegallery.php?path=images/folde
9
Date Submitted Thu. Dec. 21st, 2006 4:09 AM
Revision 1
Scripter shachi
Tags JavaScript | Number | times
Comments 3 comments
This script lets you do any action the number of times specified.
10
Date Submitted Thu. Dec. 21st, 2006 3:48 AM
Revision 1
Scripter shachi
Tags addCharAt | JavaScript | manipulation | String
Comments 0 comments
Adds any character at the given index of a string.

NOTE: Count starts from 0
10
Date Submitted Wed. Dec. 20th, 2006 10:26 AM
Revision 1
Scripter shachi
Tags JavaScript | manipulation | removeCharAt | String
Comments 1 comments
This simple function simply removes the character at the given index from a string.

NOTE: The count starts from 0
8
Date Submitted Thu. Dec. 7th, 2006 9:27 AM
Revision 1
Scripter Casper42
Tags CSS | MySpace
Comments 14 comments
This one may get me in trouble or kicked off MySpace altogether, but I thought it would be a fun bit of CSS magic to post.

As some of you may already know, MySpace does a REALLY good job of preventing images, script and some other tags from being used to customize your space. They have even gone to the extent of using tables without ID's to do the layout.

Pretty ingenious, allowing some customization, but still keeping those annoying ads for single women available to me and my youth groups kids, my family, etc..

Well no more - I want my friends to visit My Site, not just MySpace - so I have a clever method of getting them to go there, instead of posting comments on MySpace...

Check out my space to see this code in action!
www.myspace.com/casper619
12
Date Submitted Wed. Nov. 15th, 2006 7:29 AM
Revision 1
Scripter Casper42
Tags JavaScript
Comments 2 comments
I found this to be a neat little trick for hiding(somewhat) source javacscript code from peering eyes...

This function will unload all linked javascript files so that when you view source - you see no javascript files! (Especially helpful when using FF and using web-developer tools - no linked js files are displayed) The files remain resident in memory - allowing for the functions to work.

Just call the function in the tag
« Previous 1 2 3 4 5 6 7 8 9  ...  15 16 Next »