Javascript innerHTML...
Ever wonder how you could change the contents of an HTML element? Maybe you’d like to replace the text in a paragraph to reflect what a visitor has just selected from a drop down box. By manipulating an element’s innerHtml you’ll be able to change your text and HTML as much as you like. Changing Text with innerHTML Each HTML element has an innerHTML property that defines both the...
XSess Secure ASP Session T...
Main Functions This is the code for the XSess function which transfers the visitor to the destination website: FUNCTION XSess(xsesspath, destpath) ‘pass this session to xsesspath Dim q q = “xsessdestpath=” & hsh(destpath) & “&” For Each s In Session.Contents If Not IsArray(Session(s)) Then q = q & hsh(s) & “=” & hsh(Session(s))...
Word Wrap...
A function that takes a string of text and wraps it into lines of a length that you determine. Can be useful for guestbooks, news posting scripts etc. to prevent the layout breaking. The code <?php /** * Example usage: * * // Your text * $text = "This is a sentence which contains some words."; * * // Or from a database result * $text = $row['text']; * * // Then put it into...
Visitor information...
Displays information about a visitor to a web page. Shows IP address, referrer and browser type. The code <?php /** * Add this line of code in your page: * <?php include "visitor_information.php"; ?> */ // Display IP address echo "<p>IP Address: " . $_SERVER['REMOTE_ADDR'] . "</p>"; // Display the referrer echo "<p>Referrer: " . $_SERVER['HTTP_REFERER'] . "</p>"; //...
Url Redirection Code...
<html><head><meta http-equiv=”refresh” content=”1;url=http://yourwebsite.com”><title>Redirect</title></head><body bgcolor=”#000000″><br><br><!– This JavaScript Code And Many More Found Free At: http://www.ecommerce-host.co.uk –><center></center><br><center><font color=#ffffff...
URL Redirect Script using ...
A quick script which makes easy URL redirections using array and header functions. ##################################### code start ############################### <?php // Filename: redirect.php /* A simple script made using array and header functions.Ideal for bannerexchange sites which provide redirections. Very easy to use just change the values between “” below the array function. E.g...