Skip to main content

Posts

Showing posts from December, 2011

Get full web page URL from address bar

Syntax <?php $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; echo $url; ?>

How To Write a Download Link

Sometimes you have items on your website that you want your customers to be able to download to their home computer. Things like large documents and PDF files, long videos, or songs. But most files are automatically opened in the browser window rather than saved as a download file. This how to will explain two ways to do it - an easy way and a slightly harder way. The first requires that your readers do most of the work, while the second requires that you do a little work to the file to download. Difficulty:  Average Time Required:  10 minutes Here's How: Upload the file to be downloaded to your Web server. Make sure you know where it is by testing the full URL in your browser window. /documents/large_document.pdf Edit the page where you want the link and add a standard anchor link to the document. <a href="/documents/large_document.pdf">Download the large document</a> Add text next to the link telling your readers they need to right-cli

Collapsible Menu Script Javascript EasilY

Script Title:  Collapsible Menu Script Description:  Collapsible menus that turn into submenus. Useful for things like categorizing subjects and a table of contents. Example:  Available Menu 1 Menu 2 Copy the following code between the <BODY></BODY> tags of your html page. Copy the following code between the <BODY></BODY> tags of your html page. <!-- Collapsible Menu Script. Created by Kyle Edwards. Please keep this notice intact. --> <!-- Below is the code for the hyperlinks that expand and collapse the menus. You need to do the following for each menu: 1. Create hyperlink code that looks like this: <a href="#" onclick="collapse_menu(menu1, 0)">The value of the link goes here.</a><br> Note: Change menu1 to the name of the menu, and change 0 to the number of the menu. Note: 0 is the number of the FIRST menu. 2. After each hyperlink, type in code that looks like this: <span id="menu1"></

Collapsible lists in JavaScript

Long nested lists on web pages can be difficult to understand, especially if the visitor must scroll to see the entire list. The  tree view , a user interface widget that displays hierarchical data as nested lists, solves this problem by making lists collapsible and expandable; a list can be opened by or closed by clicking on its parent list item. CollapsibleLists is a JavaScript object that turns a normal HTML list into a tree view. In the example below, click on the items with plus and minus icons to expand and collapse their lists; in this example the top level deliberately cannot be collapsed. Collapsible lists Actions Uses Download CollapsibleLists Download one of the files below and upload it to your web server. File Size Description CollapsibleLists.js 4,770 bytes Full version, with comments CollapsibleLists.compressed.js 1,667 bytes Compressed version Link to the file using a script element in the head of your page: 1 < script type =" text/java

Impartanat liNkS fOr Beg!nerS

http://www.phpeasystep.com/php-cate.php?category=forum-and-guestbook http://stackoverflow.com/questions/4979353/jquery-change-image-onclick-of-image-clicked-and-others http://www.java-scripts.net/javascripts/Collapsible-Menu-Script.phtml http://webdesigndan.com/blog/collapsible-menu http://code.stephenmorley.org/javascript/collapsible-lists/#download http://webdesign.about.com/od/beginningtutorials/ht/download_link.htm http://www.phpbuilder.com/