Saturday 14 December 2013

Print a Web Page Using JavaScript in client side

                                                         HTML Program
 -------------------------------------------------------------------------------------------------------------
Many times you would like to give a button at your webpage to print out the content of that web page via an actual printer.
JavaScript helps you to implement this functionality using print function of window object.
The JavaScript print function window.print() will print the current web page when executed. You can call this function directly using onclick event as follows:
--------------------------------------------------------------------------------------------------------------
<head>        
<title>
  
  Print a Web Page Using JavaScript
</title>

<!-- Print screen java script source code -->

<script language="JavaScript" type="text/JavaScript">

function disablePrintButton()
{
    document.getElementById('showPrintButton').style.display="none";
    window.print();
    document.getElementById('showPrintButton').style.display="block";
}
</script>
</head>
<body>
<table>
<center>
        <font face=verdana,arial,helvetica size=5 color="#000aa4"><b>Print a Web Page Using JavaScript</b></font>
</center>         <hr width=100%>
<p>
<center>
<font face=verdana,arial,helvetica size="1">
<p>&copy;2013 S.Manikandan<br>
All Rights Reserved
<p>This page last modified on Sat day, 14-Dec-2013 16:52:27 Pm
<p>http://selvanmani.blogspot.in/
<P>E-Mail : selvanmanieee@gmail.com</p>
<p>
</font>
<!-- Print screen java script source code -->

<tr>
    <td colspan="2"  class="button_row_center" id="showPrintButton">
    <INPUT name=button type=button
                    class=button_Class onclick="javascript:disablePrintButton();" value=Print>                  
    <input type="button" value="Close" onClick="window.close()" class="button_class"></td>
</tr>
</center>
</table>
</body>

</html>
--------------------------------------------------------------------------------------------------------------
source code



<input type="button" value="Print" onclick="window.print()" />

ScreenShot
 



Print a Web Page Using JavaScript
Print a Web Page Using JavaScript

©2013 S.Manikandan
All Rights Reserved This page last modified on Sat day, 14-Dec-2013 16:52:27 Pm http://selvanmani.blogspot.in/ E-Mail : selvanmanieee@gmail.com

Monday 7 October 2013

USB Mp3 & FM decoder board

The FM module with USB function of Vire Silicon.Co Ltd is an excellent miniature FM module with USB input and digital display for functions.
It is available as assembled board with remote.


The VTF-108 FM –USB Module is available as ready made assembled board. Its output can be connected to power amplifier or into the amplifier of VCD player, Car stereo etc. The module has the following important features:

Brand Name: VIRE


  • FM Channels 87.5 – 108 MHz
  • Song number display 18888
  • Song selection mode
  • Auto channel scan and save provision
  • Digital volume level display
  • Forward and backward selection
  • Volume Up /down buttons
The circuit board is available as kits with connecting wire
The circuit requires 5 Volt regulated power supply (or) 5 Volt SMPS power supply.

5 Volt regulated power supply Pin Diagram
Connections

On the PCB, there are markings for wire connections and wire sets are provided along with the kit. The markings on the back of the PCB indicates:

Output to Amplifier
L – Left channel
G – Ground
R – Right channel

Volume control

Use a 10 K Lin dual volume control between the output lines (L and R) of the module and the amplifier. Set minimum volume (2 to 4) in the module using remote and adjust 10 K pot to get clear sound from the speaker. Then increase the volume using remote to the required level. The module can give 1 to 50 range volume.

Antenna

Antenna is necessary if the signal strength is weak .Connect 30 cm plastic wire to the point ANT on the PCB
5 Volt regulated power supply is necessary for the circuit. Make a regulated power supply with IC 7805 with 1000 uF filter capacitor. If the power supply is not well regulated or with ripples, performance of the circuit will be poor.

 Remote less operation

On the PCB, connections V+, M,V-, PP etc are given to connect membrane switches for manual operation. 


                             Technical Data
  •  Support : FM / USB / TF / AUX
  •  FM function : 87.5 to 108MHz frequency range
  • Song number display 18888
  • Accessory : remote
  • Power supply : 5V
  • Usage : home theatre, portable audio player, car audio...
  • Screen : LED display
  •  Speacial feature : Resume
  •  S/N : 80(dB) 
  •  Auto Radio Station Search Operation.
  • USB / SD Volume Up  V=50
  •  USB / SD Volume Down V=00
  • FM / AUX LINE Volume Up  V=30
  •  FM / AUX LINE Volume Down V=00