| |||||||
| Register | Projects | FAQ | Members List | Mark Forums Read |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Hi With Indexu you can add print feature to every page you want Here is the very simple way to do that First of all you have to put this code in template "header.html" before </head> tag <script language="JavaScript"> var gAutoPrint = true; // Tells whether to automatically call the print function function printSpecial() { if (document.getElementById != null) { var html = '<HTML>\n<HEAD>\n'; if (document.getElementsByTagName != null) { var headTags = document.getElementsByTagName("head"); if (headTags.length > 0) html += headTags[0].innerHTML; } html += '\n</HE>\n<BODY>\n'; var printReadyElem = document.getElementById("printReady"); if (printReadyElem != null) { html += printReadyElem.innerHTML; } else { alert("Could not find the printReady function"); return; } html += '\n</BO>\n</HT>'; var printWin = window.open("","printSpecial"); printWin.document.open(); printWin.document.write(html); printWin.document.close(); if (gAutoPrint) printWin.print(); } else { alert("The print ready feature is only available if you are using an browser. Please update your browswer."); } } </script> Then , put this code into the template where you want the Print feature will be available (as for me better to detail_link.html, at the top of template) <div id="printReady"> At the end of template place </div> Then, add (we have for example detail_link.html template) code to put some link or image for printing option <img src="http://www.your_domain.com/path_to_image" alt="print details of website" /> <a href="javascript:void(printSpecial())">Print this Page</a> that's all ![]() If you have any suggestions or questions - don't hesitate to ask, everything is possible with Indexu |
| |||
|
WOW I am impressed very good job I will try to implemented asap
__________________ mydir.gr - Greek Index Catalog |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Print link details ? | Frank71 | Tutorials, Hints & Tips | 3 | 02-16-2006 06:42 PM |
| cannot feature listings ?? | ideavirus | v5.x | 4 | 05-15-2005 04:32 AM |
| Is the "review" feature an essential feature for INDEXU at you website? | esm | v5.x | 7 | 04-28-2004 09:21 AM |
| Please add this feature!!!!!! | craven | v5.x | 0 | 07-07-2002 04:57 PM |
| Print a link | armadinina | v3.2 | 0 | 08-30-2001 05:57 PM |