Please support our Web Development advertiser: Programming Forums
Function to find prime numbers in javascript
Accepts number as input, writes the prime numbers up to that number to the screen. (View Snippet)
Binary to decimal using bitwise operators in javascript
to demonstrate some usage of bitwise shift and xor operators, i created a conversion function using these two. (View Snippet)
MIPS MULTIPLICATION SIMULATOR in javascript
This pure javascript code simulates how multiplication is done by mips processors. (View Snippet)
Layout Sample #2 in css
A two columned fixed layout with vertical navigation sample. Now all it needs is your great imagination. Hope you find this useful, and help you all the way in your web activities. Enjoy... (View Snippet)
Binary to Decimal Converter in javascript
Converts binary numbers to their equivalent decimal numbers. (View Snippet)
Layout Sample #1 in css
You are free to use and modify my layout in any purpose, and I hope you find this useful! Enjoy... (View Snippet)
Decimal to Binary Converter in javascript
As usual i searched google to convert Decimal numbers to their Binary equivalents but i couldnt find any short algorithm for that matter. So here is mine.. (View Snippet)
Backtracing Function Calls in php
So you've got this big long function chain and PHP's oh-so-helpful Fatal Error messages aren't helping at all. Here's a quick example of how to do a function backtrace without throwing exceptions.
Output:
=> => Array
(
=> someFile.php
=> 4
)
=> Hello World (View Snippet)
Stylesheet changer in javascript
A basic example on how to change your stylesheet dynamicaly! I will use a dropDown list to control the environtment!
Assuming that you have 4 different .css ( default, red, blue and green ) on your directory!
From this line you'll have to replace this with your own stylesheets.
default.css
body{... (View Snippet)
From HTML to XHTML Code in html
Although most people speak of HTML code, the fact is that if you write good HTML code, you’re actually writing XHTML. XHTML is a set of rules that, if you follow them when you write HTML code, result in code that is more standards-compliant, and hence more likely to render as you want it to on a... (View Snippet)


