Quantcast
Channel: DaniWeb Code Topics
Browsing all 223 articles
Browse latest View live
↧

Gender Option

Add to....Board Wrappers: Footer No need to really change anything in the code, if you want to select a different default URL just change the variable in the top of the script. It's there so that at...

View Article


X Arcade Version 1.0

Have you ever wanted an arcade for your forum? Well now you can! The best part is you can play the games from x arcade at your forum, and not at some site! The instructions are easy to understand, and...

View Article


Remove underline from username links

Put it in you footer at Admin CP->Board Wrappers, and underline will disappear for username links. This code only makes sense when you have underline enabled for links in your CSS.

View Article

Rainbow Text

A simple way to create rainbow colored text on your web page. Just cut and paste the code into Notepad, save as Rainbow.htm and run it on your browser.

View Article

The Message Snake

You probably have seen those message snakes following the cursor on a web page. Well, the javascript code is not too complex, so let's look at it ...

View Article


Image Swap with the Mouse

Swap two images as you move your mouse in and out of the image field. Uses onMouseOver, onMouseOut and a short javascript code.

View Article

Background Color Changer

Shows how to connect a button onclick event to a javascript function to change the background color of the document. Just cut and paste the code into Notepad or other editor, save as BGchanger.htm and...

View Article

Monitor Resolution Detection for Tables

A very simple PHP/Javascript snippet to detect the resolution of a user's monitor and create a table using that resolution to best fit within the user's browser (to avoid scrolling). Note: This is a...

View Article


Smart Mind "FLOAT EVERYTHING"

Hi there is the code for floating some thing (menus image or what ever you want).You can set an specific location for the floating item and when you web page is scrolled down or up the object will...

View Article


SiteShow -- Create a slideshow of web pages

This is a simple to use, self-contained website slideshow utility. Do you have a monitor or TV setup in your lobby where you'd like to present web content automatically? With this HTML/Javascript...

View Article

Smart Mind "SCRIPT to Write Text files"

It is a simple one and a more complex one will be here soon this code has not been tested but it works well on IE 6.0+ Do enjoy and Comment it Please

View Article

Give an object multiple same-event handlers

You want your object to do a number of different things when it's clicked, and you've used up onmouseup, onmousedown and onclick. There are some properietry solutions to this, but it's quite a simple...

View Article

javascript clock

This script displays the current time in your browser. You can choose the 12-hours format or the 24-hours format.

View Article


Calculate number of days between two dates minus weekends

I browsed google and found nothing so thought i would put my efforts up here. hope this all helps. this function will allow you to return the number of days between two dates minus saturdays and...

View Article

scroll smoothly

when you have long web pages, your users may be confused scrolling within your pages because built-in javascript scrollIntoView method makes the page move suddenly. ScrollToControl method moves slowly...

View Article


Lottery draw

Random numbers from 1-50 are drawn and displayed in a alert dialog box.

View Article

Disble right click in browser

Check this for disable Right Click Permissions

View Article


Image may be NSFW.
Clik here to view.

Image Rollover

First take two images named with smirk1.jpg and smirk2.jpg with same size paste below code and for Image write this code

View Article

Usefull Prototype

This method escapes all &, <, and > symbols in the string, making it safe to display the string on a web page without fear that it will be treated as HTML.

View Article

Dynamic Calendar

Making a calendar is a bit more complex than making a timer or clock but mostly because any calendar script is going to be generating HTML to display the calendar and whenever you have programs...

View Article
Browsing all 223 articles
Browse latest View live