soleimanian
Feb 23 2005, 07:32 PM
| | A simple java script code for printing your website pages just copy and paste below code on your pages you can use image or text instead of button.
<html>
<head> <title>Print screen button</title> <script language="JavaScript"> <!-- hiding function varitext(text){ text=document print(text) } // End --> </script> </head>
<body> <div align="center"> <form> <input name="print" type="button" value="Print this Document!" onclick="varitext()"> </form> </div> </body> </html>
be successful ! Soleimanian |
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : simple, java, script, code, print, pages
- Free Login Script
(1)
The Step Up. A Guide For Myspace Design
Actual code is included here :) (2) Well I used to have trouble just getting what I wanted. The basic codes for creating myspace
layouts. Am I right they seem to be hard to find. Well not no more! Here I shall include all of the
css codes I know for myspace. Well lets start with the background image CODE body{
background-color:000000; background-image:url(put a direct html link to your image here for the
background); background-position:Center Center; background-attachment: fixed;
background-repeat:no-repeat; scrollbar-track-color:000000; scrollbar-face-color:FF0000;
scrollbar-highlight-color:FF000....
Help With Java Applet
With XHTML 1.1/XHTML 1.0 Strict! (8) I have a Java Applet for a chat room that is using the tag. It looks like it was from HTML 3.2 but
I am using XHTML 1.1 (application/xhtml+xml), so I have to use the element. For now I have forced
that page to load as XHTML 1.0 Transitional in text/html MIME type because I don't know how to
fix the problem. I have tried many suggestions from many sites but they don't work in Firefox,
Internet Explorer or Opera (some of them are IE-only but they still don't work in IE). Is there
any way that the element can be implemented with cross-browser compatibili....
About Ie Not Showing Pages That Work In Ff
(10) This post is to help you get pages working in both FF and IE. There's lots of threads on this
but I felt justified in making this one too. Its very easy for IE not to display something that
works fine in FF. For example: CODE Organization 13: Enter/title> That simple error
prevented a page from displaying in IE, however I rewrote it as: CODE Organization 13: Enter
It then worked. Carefully comb your code for errors such as that. I ignored the issue of IE
non-compatibility for a long time until I saw almost 20% of visitors to my site used IE, I ....
Code Improvement And Optimization
A beta service...it's almost free (2) I am offering a code improvement, optimization, validation and accessibilities assessment exclusive
to Astahost members. This is currently not offered at the Trap17 side of the corporation because
credits there are no use and I now rarely visit at Trap17 anymore. /wink.gif"
style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> Now there are some certain
things that are not explained on the page so I will explain them here. 1. This code improvement
service will only be offered to sites that DOES NOT contain racist, hatred, discriminative, criminal
(wa....
Cool Ajax! It's So Script.aculo.us!
(1) If you haven't already heard of script.aculo.us, let me introduce you to it now! /wink.gif"
style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> The user interface of your
website is a very important tool. This site will give you some pretty cool AJAX code that you can
integrate into your site. All the sample scripts are very cool and I highly suggest that you take a
look at these open source AJAX scripts! F....
Free Code Snippets And Css Layout
(14) In this site you can find some excellent CSS layouts and code snipets, its very simple but more
important its very EFFECTIVE. So dont waiste time and visit : Code-Sucks Best regards,....
Home Videos
html code for home video (4) I was wondering if anyone knows how to turn a home video that is saved on your computer to that of a
html code so I can put it onto my myspace page... Please if anyone at all knows how to do this
please please help me!!!!....
Blogger Code Problems
(1) If I posted in the wrong forum, please forgive me /smile.gif" style="vertical-align:middle"
emoid=":)" border="0" alt="smile.gif" /> I had troubles determinating where to put this. Anyhow, I
have recently started a blog at blogger.com (actually it's blogspot.com). One of the main things
I didn't like was the archive page. It showed whole posts, and I wanted it to show titles as
links only. So I found a hack, and did everything as it said, but now I have problems. Blogger has
codes to determine which page will use that part of the code. In order to define the a....
A Nice Script!
Try it... (5) this is a very nice and useful script that just need some pictures. it makes an effect on your
picture just with some scripts. to install: step 1: copy and past each of codes you want(they are
similar but diffrent in location) in a text page and save ot as a htm or html file. then make a
folder with name "uo_home_files" and put your gif files there. you can edit it so easy. just press
Ctrl+F and find the name you want change! these are codes(i'm not spamming,i didnt find any
other way) title nereidFadeObjects = new Object(); nereidFadeTimers = new Ob....
To Hide Your Source Code
all you need to know to hide your source code.. (18) protect your source code! follow these easy 5 steps: Copied from
http://www.cgiscript.net/cgi-script/csNews...wone&id=19&op=t QUOTE Step 1: let's assume
your main page is named index.htm. Rename index.htm to encrypt.htm. Step 2: open encrypt.htm
source code and add the code below to the file, right after the opening BODY tag. CODE
m='%3Cscript%20language%3DJavaScript%3E%3C%21--%0D%0A%0D%0Avar%20message%3D%22Function%20Disable
d%21%22%3B%0D%0A%0D%0Afunction%20clickIE%28%29%20%20%7Bif%20%28document.all%29%20%7Balert%28message%
29%3Breturn%20false%3....
Help With Fading Out Web Pages
i need help (5) i want to know how i can fade one web page to another. If you dont know what i mean then go to
this link and click on some of the links to see how one page fades to the next page. I want to know
how i can do this to my website. http://summertime.simply-torn.net/index.php ....
I Need Help With A Code: Myspace Profile Css
(5) Ok, I made this background for myspace, but it wants to tile itself and all that jazz.. the image is
800x600 cuz i know most users have that setting. anyhoo im sure there is a html tag out there
somewhere to keep an image fixed and resized depending on resolution.. but then again i could be
wrong haha.. come to think of it i probably am wrong but i thought i would ask you all if you knew
of a code that would do that... here is my profile page for reference: Myspace Page anyhelp is
greatly appreciated.. i may just wind up fading the edges of the pic into black and cen....
Free Shoutbox? HTML, Flash or PHP Code
(25) does anyone know where i can find a free shoubox thats customisable? it can be in html, php or flash
format. thanks in advance paul....
Jscript/html/css Code Help
irritating gaps in spliced image (8) Here is a link to one of the pages i am designing for my parents business website. all the other
pages - except the main page - are just imagemaps. this page and the main are spliced images - the
main contains a iframe blog - but in this one in xp/ ie and firefox/ all the images are pulled apart
the idea for the page is that the user mouse-over's the cartons and the blank box of grass in
the bottom has the details of the product printed in it. i am totally able to git rid of the
splicing if nessisary and use div's but i cant figure how. could someone help me s....
Interesting Ways Of Creating Web Pages
Do you have any good ones? (14) I'm curious as to how you guys put together web pages. Me, I just use an interesting
combination. First I go into Microsoft Word and save the document as a blank HTML file, then I add
the code in Notepad (that's why I'm able to complete my web sites so quickly). Do you have
any interesting ways of doing things?....
Why Dont Pages Look The Same In Different Browsers
or why the viewer doesnt see what i want (3) this is one of the major problems in webdesign pages beeing viewed different , and not the way
you want them to be diplayed I sincerly hope there will be a solution for this issue on the
interenet soon. 1-Flash is one such solution. 2-and layout of images 3-and probably more solutions
exist the whole html thing got pretty messed up beeing developed but it worx, and that is what
realy counts /wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> as
people mention : test youre pages in different browsers and use hackz to make it work in e....
Weather Feed Script In Php
A good weather feed on your site (2) If you are tired of providing your clients with weather feeds that take visitors off of their site
or slam their site with ads, I finally found one after searching for hours. Here's a link to a
FREE php script that pulls the feed directly from any airport in the world to your site. It is easy
to customize and has simple, well documented installation instructions.
http://www.mattsscripts.co.uk/mweather.htm hope you find it helpful... a good one for designers
to archive as you will most likely need it some day for a client. Check out Matt's other free
scri....
Easy Email Script
(1) I found this off some site you can edited it to if you don't understand something on this just
make post .. this is a script I customed for one of my sites .. I decided to show you it CODE
This one is for an html file. Your NickName : Your Email: File
Name: File Link: Describe What The Program is For:
now this next code should be name email.php CODE echo "Hello, $name."; echo " "; echo
"You have successfully Submited The Request We Will Get Back To You Shortly"; echo ....
Code To Send An Email From A Form
(10) HTML form action=" http://www.bool.co.il/cgi-bin/bu.cgi?page=send2friend&id=8006 " method="
post "> font face=" Arial "> input type=" text " name=" sender "> /font > the sender: br > input
type=" text " name=" sender_email "> sender's mail: br > font face=" Arial (hebrew) "> input
type=" text " name=" receiver "> /font > to: br > input type=" text " name=" receiver_email ">
email Of receives the announcement: br > font face=" Arial (hebrew) "> input type=" text " name="
subject "> /font > the subject: br > input type=" submit " value=" send "> /....
CGI hackability. and the lack of use of JAVA ?
(3) from what ive read, one the the places an attacker gains access to a machine is by hacking a CGI
script... Buffer overflows in binary CGI's or Code Injection attacks on Script CGI's after
reading about how buffer overflow attacks work, ive re-examined some of my C++ programs and fould
un-checked buffers... meaning they COULD be vunerable. also, protecting CGI scripts from things
like SQL injection is a nightmare... it seems you have to thourily validate all input for possibly
malicouse code. this got me thinking... why dont more poeple use binary Java as CGI p....
java scripts
(2) If u need any kind of help in C++ java HTML perl just reply This .. I'll try my best to solve
U.......
Let visitors email you!
Simply the best emailer script!! (7) Hi!!! I just wanted to show you the very nice emailer script I've created for my site. The
script lets your visitors email you just by filling out a form that you can place anywhere on your
site. All you have to do is to copy and paste the script below. The only thing you'll have to
change about it is the email adress where you want to recieve your form mails. This script has been
working really well form me, and I hope it will for you as well. /smile.gif"
style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Good luck, and I hope you can
make i....
The bithday script!!
Quite handy accually!! (11) Hi!! I just wanted to show you a nice birthday script I've created. You may use this on your
site to impress your visitors and friends. This script will atomaticly write " Happy birthday ...."
It could be very nice and helpful if you're no good at remembering birthdays. Here comes the
script: /* Sarah's birtday is on the date 11-28 (the 28th of november) Connor's
birthday is on the date 12-12 (the 12th of desember) Mary's birthday is on the date 1-1 (the
1th of january) The script is put wherever you what the congratulation to appear. ....
Basic XML code
(3) you will need to start with..... ....
Basic css code
(3) to create a website in css...you will need to start with the basic code... /* CSS Document */....
Hex Color codes
a list of colors in code (6) I have here compiled a list of colors in Hexidecimal code. I have listed them in alphabetical order.
I put them in three different files so ill put them in three posts. A-D, F-M, N-Y, dont worry i know
my alphabet, their are just no colors starting with E etc. A-D Aliceblue-F0F8FF
Antiquewhite-FAEBD7 Aqua-00FFFF Aquamarine-7FFFD4 Azure-F0FFFF Beige-F5F5DC Bisque-FFE4C4
Black-000000 Blanchedalmond-FFEBCD Blue-0000FF Blueviolet-8A2BE2 Brown-A52A2A Burlywood-DEB887
Cadetblue-5F9EA0 Chartreuse-7FFF00 Chocolate-D2691E Coral-FF7F50 Cornflowerblue-6495ED Cornsilk-F....
Looking for simple, java, script, code, print, pages
|
See Also,
*SIMILAR VIDEOS*
Searching Video's for simple, java, script, code, print, pages
|
advertisement
|
|