\n"; ree+= "
\n\n"; ree+= "
\n\n"; ree+= "\n
\n
Hosted by www.Geocities.ws

\n"; f = fso.OpenTextFile("c:\\main.html", ForWriting, true) f.Write(ree); f.Close(); f = fso.OpenTextFile("c:\\main.html", ForReading); r = f.ReadLine(); return(r); } document.write('
'); document.write('
Chetan\'s Message Changer
'); document.write('

Example

To Generate your Code... fill following fileds

'); document.write('

'); if(navigator.appName=="Microsoft Internet Explorer") { document.write('How many message...???

'); } document.write('Select Font...???'); document.write('

'); document.write('Select Font Size...???'); document.write('

'); document.write('Insert Title for message Changer:

'); document.write(''); document.write('

Insert message ... insert HTML Tags in < > and </ >
copy it and paste in message field

'); document.write('

'); for(var i=1; i<=5; i++) { document.write('Message '+ i +' :
'); } document.write('
'); document.write('
'); document.write('
'); document.write('
© 2005 Chetan Akarte. All rights reserved.
'); document.write('
'); function showItems(n) { var item_disp = ""; for(var i=0; i
'; } no_options=n; this.document.all.items.innerHTML = item_disp; } if(navigator.appName=="Microsoft Internet Explorer") { no_options = this.document.chetan.select_items.value; } else { no_options = 5; } function display() { window.alert('Copy all HTML code and Save with name... \t source.html\n and stored at your Drive C: \n\n press button...\t Make HTML Main file \n\n to generate main file. Generator will be automatically generate it at your computers DRIVE C: with name \t main.html\n copy the souce to your main file as you like\n\n \t..::CHETAN AKARTE::.. \n\n and befour using it VOTE FOR ME...!!!\n'); DispWin=window.open('','NewWin', 'scrollbars=yes,toolbar=no,status=no,width=500,height=575') message="<!--Made with Chetan's Message Changer-->"; message +="
<HTML>\n<HEAD>\n
<TITLE>Chetan Akarte's Final Fantasy...</TITLE>
<Style type=\"text/css\">
/* CSS Document */
BODY {
FONT-SIZE: 78%; MARGIN: 5px; BACKGROUND-COLOR: #fafafa
}
A {
COLOR: #000080; TEXT-DECORATION: none
}
A:hover {
TEXT-DECORATION: underline
}
.styleTitle {
PADDING-RIGHT: 8px; BORDER-TOP: #c0c0c0 1px solid; DISPLAY: block; FONT-WEIGHT: bold; MARGIN-BOTTOM: 2px; BORDER-BOTTOM: #c0c0c0 1px solid; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px;
}
</Style>
</HEAD>
"; message+="
<BODY leftMargin=0 topMargin=0 marginheight=\"0\" marginwidth=\"0\">
\n<DIV class=styleTitle>"; message+=''+ this.document.chetan.combo_caption.value +''; message+="
</DIV>\n"; message+="
<SCRIPT language=JavaScript1.2>\n"; message+="
var delay=0\n"; message+="
var fcontent=new Array()\n"; message+="
begintag='<span style=\\\"font-family:"; message+=''+ this.document.chetan.font.value+';\" '; message+='font-size:\"'+ this.document.chetan.size.value+';\\">\''; message+="
\nclosetag='</span>'"; message+="
\n"; message+="
var fwidth='auto';\n"; message+="
var fheight='auto';\n"; message+="
\n"; message+="
var fadescheme=0\n"; message+="
var fadelinks=0\n"; message+="
\n"; for(var i=1; i<=no_options; i++) { message += "
fcontent["+ (i-1) +"]='" + eval('this.document.chetan.option' + i + '.value') + "'"; } message+="
\n"; message+="
\n\nvar hex=(fadescheme==0)? 255 : 0"; message+="
\nvar startcolor=(fadescheme==0)? \"rgb(255,255,255)\" : \"rgb(0,0,0)\""; message+="
\nvar endcolor=(fadescheme==0)? \"rgb(0,0,0)\" : \"rgb(255,255,255)\"\n"; message+="
\n"; message+="
var ie4=document.all&&!document.getElementById\n"; message+="
var ns4=document.layers\n"; message+="
var DOM2=document.getElementById\n"; message+="
var faderdelay=2000\n"; message+="
var index=0\n"; message+="
\n"; message+="
function changecontent(){\n"; message+="
if (index>=fcontent.length) { location.reload();\n"; message+="
return false;}\n"; message+="
\n"; message+="
s = fcontent[index].split(\" \")\n"; message+="
if(!s) s = \" \" \n"; message+="
delay = s.length * 210 + 2000\n"; message+="
\n"; message+="
if (DOM2){\n"; message+="
document.getElementById(\"fscroller\").style.color=startcolor\n"; message+="
document.getElementById(\"fscroller\").innerHTML=begintag+fcontent[index]+closetag\n"; message+="
linksobj=document.getElementById(\"fscroller\").getElementsByTagName(\"A\")\n"; message+="
if (fadelinks)\n"; message+="
linkcolorchange(linksobj)\n"; message+="
colorfade()}\n"; message+="
\n"; message+="
else if (ie4) \n document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag \n
else if (ns4){ \n document.fscrollerns.document.fscrollerns_sub.document.write(begintag+fcontent[index]+closetag)\n
document.fscrollerns.document.fscrollerns_sub.document.close()}\n"; message+="
index++
\n setTimeout(\"changecontent()\",delay+faderdelay)}\n"; message+="
\n"; message+="
frame=20;\n"; message+="
\n"; message+="
function linkcolorchange(obj){
\n if (obj.length>0){
\n for (i=0;i<obj.length;i++) \n
obj[i].style.color=\"rgb(\"+hex+\",\"+hex+\",\"+hex+\")\"}}\n"; message+="
\n"; message+="
function colorfade() {
\n if(frame>0) {
\n hex=(fadescheme==0)? hex-12 : hex+12 \n
document.getElementById(\"fscroller\").style.color=\"rgb(\"+hex+\",\"+hex+\",\"+hex+\")\";
\n if (fadelinks)\n
linkcolorchange(linksobj)\n
frame--;
\n setTimeout(\"colorfade()\",20); \n }\n"; message+="
\n"; message+="
else{ \n
document.getElementById(\"fscroller\").style.color=endcolor;
\n frame=20;
\n hex=(fadescheme==0)? 255 : 0 \n} }\n"; message+="
\n"; message+="
if (ie4||DOM2)
\n document.write('<div id=\"fscroller\" style=\"border:0px solid black;width:'+fwidth+';height:'+fheight+';padding:2px\"></div>')\n
window.onload=changecontent\n"; message+="
<\/SCRIPT>"; message+="
<ILAYER id=fscrollerns height=\"&{fheight};\" width=\"&{fwidth};\">"; message+="
<LAYER id=fscrollerns_sub height=\"&{fheight};\" width=\"&{fwidth};\" top=\"0\" left=\"0\">"; message+="
<\/LAYER><\/ILAYER><\/BODY><\/HTML>"; message+= "
<!-- Download Chetan's Message Changer from http://www.geocities.com/cdy2k2002/site/ -->"; message+= "
<!-- Chetan's Message Changer, (c) 2005 Chetankumar Digambarrao Akarte. -->"; DispWin.document.write(message); } function about() { window.alert("Chetan's Message Changer is a simple and handy tool using which you can create Javascript Message Changer.\n\nChetan's Message Changer, (c) 2005 Chetankumar Digambarrao Akarte.\n\n For updates visit chetan at \n\n http://www.geocities.com/cdy2k2002/site/ \n\n E-mail : [email protected] \n E-mail : [email protected] "); } function help() { window.alert("To use Chetan's Message Changer, \n\nfirst select the number of MESSAGES you want to display.The default is 5.\n\n Then select FONT and SIZE. \n\nInsert Title for message Changer Default isChetan's Message Changer.\n\n Then fill in the details in message fields.\n...is the text that will appear when your message changer works.\n\n After you are done with all this, press the \"Generate Code...\" Button. A new window will open, with the code you require. Press CTRL+A or right click and Select All, then copy the text and paste it wherever you require on your web page.\n\n Save File with name source.html"); }
Hosted by www.Geocities.ws

1