Version compl�te: jsB@nk » Arrière-plan » Contexte prévisualiseur
URL: https://www.javascriptbank.com/background-previewer.html
L'effet de permettre aux visiteurs de changer la couleur des objets comme du texte, arrière-plan, image sur la page Web.
Version compl�te: jsB@nk » Arrière-plan » Contexte prévisualiseur
URL: https://www.javascriptbank.com/background-previewer.html
<script language="javascript">/* This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com*/<!-- bgcolor previewer function-->function bc(){document.bgColor = document.form.tbox.value;}<!--font previewer function-->function fc(){document.fgColor = document.form.fchange.value;}<!-- bgimage previewer function(not local)-->function bg(){document.body.background = document.form.text.value;}<!-- bgimage previewer function(local)-->function bgl(){document.body.background = "file:///"+document.form.text2.value;} document.write("<FORM name='form' style='text-align: left; width: 70%;'><INPUT TYPE='text' name='tbox'><INPUT TYPE='BUTTON'VALUE=' Change background color ' onClick = 'bc()' ><BR><INPUT TYPE='text' name='fchange'><INPUT TYPE='button' value=' Change text color ' onClick='fc()'><BR><INPUT TYPE='TEXT' name='text'><input type='button' VALUE=' Change background image with this URL 'onClick='bg()'><BR><input type='file' NAME='text2'><INPUT TYPE='BUTTON' VALUE=' Change background image with this picture ' onClick='bgl()'></FORM>");</SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->