سالار جون يك فايل بساز بنام مثلا
كد:
SALAR.JS
بعد اينارو توش بنويس
كد:
<!--
// Scripting By Alireza Asgari Only For SALAR JAN
var upfotter
upfotter = '<HR>This is Salar Text In Hear Or ADS !! <Br><A Href="Clink.ASPX?ID=44"> Click Here </A>'
document.write(upfotter)
// -->
بعد زير تمام صفحاتت اين رو بنويس
كد:
<script language="Javascript" type="text/javascript" src="SALAR.JS"></script>
حالا هرچي كه تو fotter بنويسي HTML كد ها توي اون كد بالا نمايش داده ميشه
و بعدا به راحتي ميتوني نوشته هات رو عوض هم بكني
اگه سوالي داشتي بگو عزيز
موفق باشيد
<TBODY>
<TR>
<TD vAlign=top>
<IMG src="images/red_on.gif" border=0 width="78" height="28"></A></TD>
<TD vAlign=top>
<a onmouseover="imgOn('img2')" onmouseout="imgOff('img2')" href="1.htm">
<IMG src="images/blue_off.gif" border=0 name=img2 width="78" height="28"></a></TD>
<TD vAlign=top><A onmouseover="imgOn('img3')"
onmouseout="imgOff('img3')"
href="http://www.celluliteexpert.com/english/endermologie.html">
<IMG src="images/orange_off.gif" border=0 name=img3 width="78" height="28"></A></TD>
<TD vAlign=top><A onmouseover="imgOn('img4')"
onmouseout="imgOff('img4')"
href="http://www.celluliteexpert.com/english/display.php3">
<IMG src="images/banafsh_off.gif" border=0 name=img4 width="78" height="28"></A></TD>
<TD vAlign=top><A onmouseover="imgOn('img5')"
onmouseout="imgOff('img5')"
href="http://www.celluliteexpert.com/english/display.php3">
<IMG src="images/green_off.gif" border=0 name=img5 width="78" height="28"></TD>
<TD vAlign=top><A onmouseover="imgOn('img6')" onmouseout="imgOff('img6')"
href="http://www.celluliteexpert.com/english/display.php3">
<IMG src="images/sorati_off.gif" border=0 name=img6 width="78" height="28"></A></TD></TR></TBODY></TABLE>
var xx_htm$
xx_htm$= '<TBODY><TR><TD vAlign=top><IMG src="images/red_on.gif" border=0 width="78" height="28"></A></TD> <TD vAlign=top><a onmouseover="imgOn('+"'"+','+"'"+'img2'+"'"+','+"'"+')" onmouseout="imgOff('+"'"+','+"'"+'img2'+"'"+','+"'"+')" href="1.htm"><IMG src="images/blue_off.gif" border=0 name=img2 width="78" height="28"></a></TD> <TD vAlign=top><A onmouseover="imgOn('+"'"+','+"'"+'img3'+"'"+','+"'"+')" onmouseout="imgOff('+"'"+','+"'"+'img3'+"'"+','+"'"+')" href="http://www.celluliteexpert.com/english/endermologie.html"><IMG src="images/orange_off.gif" border=0 name=img3 width="78" height="28"></A></TD> <TD vAlign=top><A onmouseover="imgOn('+"'"+','+"'"+'img4'+"'"+','+"'"+')" onmouseout="imgOff('+"'"+','+"'"+'img4'+"'"+','+"'"+')" href="http://www.celluliteexpert.com/english/display.php3"><IMG src="images/banafsh_off.gif" border=0 name=img4 width="78" height="28"></A></TD> <TD vAlign=top><A onmouseover="imgOn('+"'"+','+"'"+'img5'+"'"+','+"'"+')" onmouseout="imgOff('+"'"+','+"'"+'img5'+"'"+','+"'"+')" href="http://www.celluliteexpert.com/english/display.php3"><IMG src="images/green_off.gif" border=0 name=img5 width="78" height="28"></TD> <TD vAlign=top><A onmouseover="imgOn('+"'"+','+"'"+'img6'+"'"+','+"'"+')" onmouseout="imgOff('+"'"+','+"'"+'img6'+"'"+','+"'"+')" href="http://www.celluliteexpert.com/english/display.php3"><IMG src="images/sorati_off.gif" border=0 name=img6 width="78" height="28"></A></TD></TR></TBODY></TABLE>'
document.write (xx_htm$)
if (document.images) {
img1on = new Image();
img1on.src = "images/red_on.gif";
img1off = new Image();
img1off.src = "images/red_off.gif";
img2on = new Image();
img2on.src = "images/blue_on.gif";
img2off = new Image();
img2off.src = "images/blue_off.gif";
img3on = new Image();
img3on.src = "images/orange_on.gif";
img3off = new Image();
img3off.src = "images/orange_off.gif";
img4on = new Image();
img4on.src = "images/banafsh_on.gif";
img4off = new Image();
img4off.src = "images/banafsh_off.gif";
img5on = new Image();
img5on.src = "images/green_on.gif";
img5off = new Image();
img5off.src = "images/green_off.gif";
img6on = new Image();
img6on.src = "images/sorati_on.gif";
img6off = new Image();
img6off.src = "images/sorati_off.gif";
}
function imgOn(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "on.src");
}
}
function imgOff(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "off.src");
}
}
var xx_htm$
xx_htm$= '<TBODY><TR><TD vAlign=top><IMG src="images/red_on.gif" border=0 width="78" height="28"></A></TD> <TD vAlign=top><a onmouseover="imgOn('+"'"+','+"'"+'img2'+"'"+','+"'"+')" onmouseout="imgOff('+"'"+','+"'"+'img2'+"'"+','+"'"+')" href="1.htm"><IMG src="images/blue_off.gif" border=0 name=img2 width="78" height="28"></a></TD> <TD vAlign=top><A onmouseover="imgOn('+"'"+','+"'"+'img3'+"'"+','+"'"+')" onmouseout="imgOff('+"'"+','+"'"+'img3'+"'"+','+"'"+')" href="http://www.celluliteexpert.com/english/endermologie.html"><IMG src="images/orange_off.gif" border=0 name=img3 width="78" height="28"></A></TD> <TD vAlign=top><A onmouseover="imgOn('+"'"+','+"'"+'img4'+"'"+','+"'"+')" onmouseout="imgOff('+"'"+','+"'"+'img4'+"'"+','+"'"+')" href="http://www.celluliteexpert.com/english/display.php3"><IMG src="images/banafsh_off.gif" border=0 name=img4 width="78" height="28"></A></TD> <TD vAlign=top><A onmouseover="imgOn('+"'"+','+"'"+'img5'+"'"+','+"'"+')" onmouseout="imgOff('+"'"+','+"'"+'img5'+"'"+','+"'"+')" href="http://www.celluliteexpert.com/english/display.php3"><IMG src="images/green_off.gif" border=0 name=img5 width="78" height="28"></TD> <TD vAlign=top><A onmouseover="imgOn('+"'"+','+"'"+'img6'+"'"+','+"'"+')" onmouseout="imgOff('+"'"+','+"'"+'img6'+"'"+','+"'"+')" href="http://www.celluliteexpert.com/english/display.php3"><IMG src="images/sorati_off.gif" border=0 name=img6 width="78" height="28"></A></TD></TR></TBODY></TABLE>'
document.write (xx_htm$)
ميشه بيشتر توضيح بديدmiladmovie گفت:اگر از shtml استفاده كني مي توني به راحتي هر فايلي رو كه خواستي اينكلود بكني
if (document.images) {img1on = new Image();img1on.src = "images/red_on.gif";img1off = new Image();img1off.src = "images/red_off.gif";img2on = new Image();img2on.src = "images/blue_on.gif";img2off = new Image();img2off.src = "images/blue_off.gif";img3on = new Image();img3on.src = "images/orange_on.gif";img3off = new Image();img3off.src = "images/orange_off.gif";img4on = new Image();img4on.src = "images/banafsh_on.gif";img4off = new Image();img4off.src = "images/banafsh_off.gif";img5on = new Image();img5on.src = "images/green_on.gif";img5off = new Image();img5off.src = "images/green_off.gif";img6on = new Image();img6on.src = "images/sorati_on.gif";img6off = new Image();img6off.src = "images/sorati_off.gif";}function imgOn(imgName) {if (document.images) {document[imgName].src = eval(imgName + "on.src");}}function imgOff(imgName) {if (document.images) {document[imgName].src = eval(imgName + "off.src");}} var xx_htm$ ;xx_htm$= '<TBODY><TR><TD vAlign=top><IMG src="images/red_on.gif" border=0 width="78" height="28"></A></TD> <TD vAlign=top><a onmouseover="imgOn('+"'"+'img2'+"'"+')" onmouseout="imgOff('+"'"+'img2'+"'"+')" href="1.htm"><IMG src="images/blue_off.gif" border=0 name=img2 width="78" height="28"></a></TD> <TD vAlign=top><A onmouseover="imgOn('+"'"+'img3'+"'"+')" onmouseout="imgOff('+"'"+'img3'+"'"+')" href="http://www.celluliteexpert.com/english/endermologie.html"><IMG src="images/orange_off.gif" border=0 name=img3 width="78" height="28"></A></TD> <TD vAlign=top><A onmouseover="imgOn('+"'"+'img4'+"'"+')" onmouseout="imgOff('+"'"+'img4'+"'"+')" href="http://www.celluliteexpert.com/english/display.php3"><IMG src="images/banafsh_off.gif" border=0 name=img4 width="78" height="28"></A></TD> <TD vAlign=top><A onmouseover="imgOn('+"'"+'img5'+"'"+')" onmouseout="imgOff('+"'"+'img5'+"'"+')" href="http://www.celluliteexpert.com/english/display.php3"><IMG src="images/green_off.gif" border=0 name=img5 width="78" height="28"></TD> <TD vAlign=top><A onmouseover="imgOn('+"'"+'img6'+"'"+')" onmouseout="imgOff('+"'"+'img6'+"'"+')" href="http://www.celluliteexpert.com/english/display.php3"><IMG src="images/sorati_off.gif" border=0 name=img6 width="78" height="28"></A></TD></TR></TBODY></TABLE>' ;document.write (xx_htm$) ;