Skip to main content

Posts

Showing posts with the label Java Script

Print Div ,HTML or Table Content in Asp.net Using C#

Following is the code for printing  Div ,HTML or Table to printer using C# in Asp.net < script type ="text/javascript" language ="javascript">     function print()     {     var printFriendly = document.getElementById( "div1" )     var printWin = window.open( "about:blank" , "Voucher" , "menubar=no;status=no;toolbar=no;" );     printWin.document.write( "<html><head><title>Voucher Report</title></head><body><h1>Agent Wise Report</h1>" + printFriendly.innerHTML + "</body></html>" );     printWin.document.close();     printWin.window.print();        printWin.close();     }         </ script > add this script lines in your header section of given page. < div id ="div1"> < table ...

How to get DIV Layer to appear over flash Object in Website

Here we can add an attribure to our flash object or swf object, to show Div layer over Flash Object.  so.addParam("wmode", "transparent"); <script type="text/javascript">    var so = new SWFObject("movie.swf", "mymovie", "400", "100%", "8", "#336699");    so.addParam("quality", "low");     so.addParam("wmode", "transparent");    so.addParam("salign", "t");    so.write("flashcontent"); </script> or we can add "wmode=transparent"  In the “embed” area. <object classid="123" width="550" height="400" id="movie_name" align="middle">     <param name="movie" value=" dotnetcodebytes.blogspot.com.swf"/>     <!--[if !IE]>-->     <object type="application/x-shockwave-flash" data=" dotnetcodeby...

Google translator for entire site,Translate An Entire Website

Add Google's website translator to your webpages, and offer instant access to automatic translation of the pages. Adding the website translator is quick and easy <head>    <script language="Javascript" src="eit.js"></script> </head> add this line between <head> tag. <a href='javascript:translator("en|ja")' target=""> <img src="country/ja.jpg" width=30 border=0 height=20 title="View in Japanese"></a>&nbsp;&nbsp;&nbsp; <a href='javascript:translator("en|de")' target=""><img src="country/de.jpg" width=30 border=0 height=20 title="View in German"></a>&nbsp;&nbsp;&nbsp; <a href='javascript:translator("en|fr")' target=""><img src="country/fr.jpg" width=30 border=0 height=20 title="View in French"></a>&nb...