|
USO
BLOCCO NOTE
Ma quale strumento
usare per costruire una stationery?
Ci sono varie
possibilità tra cui : l’utilizzo di un HTML editor,
del blocco note e
dello stesso O.E. ; io, personalmente,
preferisco usare il
blocco note.
Per aprire il blocco
note vai su:
START/ PROGRAMMI/
ACCESSORI/ BLOCCO NOTE
Una volta aperto il
blocco note minimizzate ed aprite la
stationery che
presenta lo Script che vi piace, andate su
Inoltra; vi
compariranno 3 possibilità :
1)MODIFICA, 2)ORIGINE;
3)ANTEPRIMA.
Cliccate su ORIGINE e
vi comparirà un codice incompren-
sibile; non vi
preoccupate, selezionate il tutto fino alla fine
( </HTML> =
questa tag segna la chiusura della pagina )
e andate in alto su
MODIFICA/COPIA minimizzate e
ritornate a lavorare
sul blocco note cliccando su MODIFICA/
INCOLLA.
1) Osservate
bene la stationery in questione, cercate di capire
di
quanti file è composta
2)Preparate i vostri file con PSP e metteteli nella stessa cartella
in cui metterete il file HTML composto con il Blocco note.
3) Cancella i file di origine con la dicitura "cid" e indica il
percorso del tuo file.
Esempio:
<BODY
bgColor=#ffffff
background=
cid:039b01c5676a$358c0410$0100a8c0@secondocomputer>
Cambia con:
<BODY
bgColor=#ffffff
background=
“D:\stationery mie\1\sfondo.jpg”>
3) Cancella il codice
inutile e cioè: la parte con il doctype
all’inizio, in
quanto quando si invia la stationery viene messa
automaticamente
da O.E. , la parte racchiusa nel META CONTENT
le parti con HREF e il
testo compreso tra il tag
<DIV>……..</DIV>
Segui il seguente
esempio:
PRIMA
<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML><HEAD>
<META
http-equiv=Content-Type content="text/html;
charset=windows-1252"><BASE
href="file://D:\stationery
mie\1\Scrollo sfondo\">
<STYLE>BODY
{
MARGIN-TOP:
30px; FONT-SIZE: 14pt; MARGIN-LEFT: 300px;
COLOR:
#ffffff; BACKGROUND-REPEAT: repeat-y; FONT-FAMILY:
"Comic
Sans MS"
}
</STYLE>
<META
content="MSHTML 6.00.2900.2627" name=GENERATOR></
HEAD><BODY
bgColor=#ffffff
background=
cid:039b01c5676a$358c0410$0100a8c0@secondocomputer>
<DIV> </DIV>
<DIV
style="FONT: 10pt arial">----- Original Message -----
<DIV
style="BACKGROUND: #e4e4e4; font-color: black">
<B>From:</B>
<A title=lorygey@hotmail.com
href="mailto:lorygey@hotmail.com">lory</A> </DIV>
<DIV><B>To:</B>
<A title=honeymoon61@libero.it
href="mailto:honeymoon61@libero.it">Lory</A>
</DIV>
<DIV><B>Sent:</B>
Thursday, June 02, 2005 1:57 PM</DIV>
<DIV><B>Subject:</B>
ciao</DIV></DIV>
<DIV><BR></DIV>
<DIV> </DIV><BGSOUND
balance=0
src=
"cid:039c01c5676a$358c0410$0100a8c0@secondocomputer"
volume=0
loop=infinite>
<DIV
id=imageholder
style="Z-INDEX:
-1; LEFT: 0px; POSITION: absolute; TOP: 0px">
<SCRIPT
language=VBScript>
<!--
direction="up"
sizew=1010
' enter the width of the scrolling image here
sizeh=430
' enter the height of the scrolling image here
nail=0
source=document.body.background
tall=((screen.height\sizeh)+1)*2
wide=(screen.width\sizew)+1
if
direction="up" then
max=tall
axis=sizeh
placement=0
reset=0
elseif
direction="left" then
max=wide
axis=sizew
placement=0
reset=0
elseif
direction="down" then
max=tall
axis=0
placement=-sizeh
reset=-sizeh
elseif
direction="right" then
max=wide
axis=0
placement=-sizew
reset=-sizew
end
if
document.write
"<pre>"
for
temp=0 to max
if
direction="up" then
document.write
"<img id=pics"&temp&" src><br>"
elseif direction="left" then
document.write
"<img id=pics"&temp&" src>"
elseif
direction="down" then
document.write
"<img id=pics"&temp&" src><br>"
elseif
direction="right" then
document.write
"<img id=pics"&temp&" src>"
end
if
document.all("pics"&temp).src=source
next
document.write
"</pre>"
document.body.background="
"
sub
scroll()
if
nail=1 then
exit
sub
end
if
if
placement < axis then
setTimeout "move", 1
else
placement=reset
setTimeout
"move", 1
end
if
end
sub
sub
move()
if
direction="up" then
imageholder.style.top=-placement
elseif direction="left" then
imageholder.style.left=-placement
elseif
direction="down" then
imageholder.style.top=placement
elseif
direction="right" then
imageholder.style.left=placement
end
if
placement=placement+1
setTimeout
"scroll", 1
end
sub
sub
imageholder_onclick()
if
nail=0 then
nail=1
else
nail=0
end
if
scroll()
end
sub
scroll()
-->
</SCRIPT>
</DIV>
<SCRIPT
language=JavaScript>
<!--
ScrollSpeed
= 275; // milliseconds between scrolls
ScrollChars
= 4; // chars scrolled per time period
function
SetupTicker() {
//
add space to the left of the message
msg = ". . . .
Lory Design . . . .";
RunTicker();}
function
RunTicker() {
window.setTimeout('RunTicker()',ScrollSpeed);
window.status
= msg;
msg
= msg.substring(ScrollChars) + msg.substring(0,ScrollChars);}
SetupTicker();
<!--
end -->
</SCRIPT>
<P>
<HR>
<P></P>No
virus found in this incoming message.<BR>Checked by AVG
Anti-Virus.<BR>Version:
7.0.322 / Virus Database: 267.4.1 - Release Date:
02/06/2005<BR></BODY></HTML>
DOPO
<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML><HEAD>
<META
http-equiv=Content-Type content="text/html;
charset=windows-1252"><BASE
href="file://D:\stationery
mie\1\ Scrollo sfondo\">
<STYLE>BODY
{
MARGIN-TOP:
30px; FONT-SIZE: 14pt; MARGIN-LEFT: 300px; COLOR: #ffffff; BACKGROUND-REPEAT:
repeat-y; FONT-FAMILY: "Comic Sans MS"
}
</STYLE>
<META
content="MSHTML 6.00.2900.2627" name=GENERATOR></HEAD>
<BODY
bgColor=#ffffff
background=
“D:\stationery mie\1\sfondo.jpg”>>
<DIV> </DIV>
<DIV
style="FONT: 10pt arial">----- Original Message -----
<DIV
style="BACKGROUND: #e4e4e4; font-color:
black"><B>From:</B> <A
title=lorygey@hotmail.com
href="mailto:lorygey@hotmail.com">lory</A> </DIV>
<DIV><B>To:</B>
<A title=honeymoon61@libero.it
href="mailto:honeymoon61@libero.it">Lory</A>
</DIV>
<DIV><B>Sent:</B>
Thursday, June 02, 2005 1:57 PM</DIV>
<DIV><B>Subject:</B>
ciao</DIV></DIV>
<DIV><BR></DIV>
<DIV> </DIV><BGSOUND
balance=0
src="
D:\cd musicali\varia\willows.mid”>" volume=0 loop=infinite>
<DIV
id=imageholder
style="Z-INDEX:
-1; LEFT: 0px; POSITION: absolute; TOP: 0px">
<SCRIPT
language=VBScript>
<!--
direction="up"
sizew=1010
' enter the width of the scrolling image here
sizeh=430
' enter the height of the scrolling image here
nail=0
source=document.body.background
tall=((screen.height\sizeh)+1)*2
wide=(screen.width\sizew)+1
if
direction="up" then
max=tall
axis=sizeh
placement=0
reset=0
elseif
direction="left" then
max=wide
axis=sizew
placement=0
reset=0
elseif
direction="down" then
max=tall
axis=0
placement=-sizeh
reset=-sizeh
elseif
direction="right" then
max=wide
axis=0
placement=-sizew
reset=-sizew
end
if
document.write
"<pre>"
for
temp=0 to max
if
direction="up" then
document.write
"<img id=pics"&temp&" src><br>"
elseif direction="left" then
document.write
"<img id=pics"&temp&" src>"
elseif
direction="down" then
document.write
"<img id=pics"&temp&" src><br>"
elseif
direction="right" then
document.write
"<img id=pics"&temp&" src>"
end
if
document.all("pics"&temp).src=source
next
document.write
"</pre>"
document.body.background="
"
sub
scroll()
if
nail=1 then
exit
sub
end
if
if
placement < axis then
setTimeout
"move", 1
else
placement=reset
setTimeout
"move", 1
end
if
end
sub
sub
move()
if
direction="up" then
imageholder.style.top=-placement
elseif direction="left"
then
imageholder.style.left=-placement
elseif
direction="down" then
imageholder.style.top=placement
elseif
direction="right" then
imageholder.style.left=placement
end
if
placement=placement+1
setTimeout
"scroll", 1
end
sub
sub
imageholder_onclick()
if
nail=0 then
nail=1
else
nail=0
end
if
scroll()
end
sub
scroll()
-->
</SCRIPT>
</DIV>
<SCRIPT
language=JavaScript>
<!--
ScrollSpeed
= 275; // milliseconds between scrolls
ScrollChars
= 4; // chars scrolled per time period
function
SetupTicker() {
//
add space to the left of the message
msg
= ". . . . Lory Design . . . .";
RunTicker();}
function
RunTicker() {
window.setTimeout('RunTicker()',ScrollSpeed);
window.status
= msg;
msg
= msg.substring(ScrollChars) + msg.substring(0,ScrollChars);}
SetupTicker();
<!--
end -->
</SCRIPT>
<P>
<HR>
<P></P>No
virus found in this incoming message.<BR>Checked by AVG
Anti-Virus.<BR>Version:
7.0.322 / Virus Database: 267.4.1 - Release Date:
02/06/2005<BR></BODY></HTML>
4)
Adesso fai copia di tutto il codice pulito ed incolla sul
blocco note.
5) Vai
su file- Salva con nome; ( Indica un nome,per esempio:
lesson1.html
) al nome dai estensione HTML e salva nella cartella dove avete messo i file,
musica e sfondo in questo caso.
6)
Adesso aprite la pagina HTML e ammirate il risultato.
Se
avete fatto tutto alla perfezione vedrete una stationery
con lo
sfondo in movimento come quella che facciamo con Scrippy.
7) Se
volete dare una occhiata al codice che avete inserito o
modificare
qualcosa, vai su “VISUALIZZA-HTML”, potrai apportare tutte le modifiche
necessarie, chiudere con la X, che vi chiederà di salvare il tutto, rispondete
di sì…..
Controllate
di nuovo il file HTML …..
COME CONSERVARE LO SCRIPT.
Ricorda:
la parte che interessa lo script non va modificata, almeno che non siamo capaci
di
manovrare
gli script…
Lo
script è racchiuso tra le seguenti tag:
<SCRIPT
language=VBScript>
<!--
(Inizio)
<!--
end --></script>
(Fine)
Se
vuoi conservare lo script copia ed incolla nel blocco note le parti racchiuse
tra i Tag precedenti e salva con estensione .txt
In
apposita cartella contenenti gli script.
CODICE PULITO
(Scroll di sfondo)
<SCRIPT
language=VBScript>
<!--
direction="up"
sizew=1024
' enter the width of the scrolling image here
sizeh=300
' enter the height of the scrolling image here
nail=0
source=document.body.background
tall=((screen.height\sizeh)+1)*2
wide=(screen.width\sizew)+1
if
direction="up" then
max=tall
axis=sizeh
placement=0
reset=0
elseif
direction="left" then
max=wide
axis=sizew
placement=0
reset=0
elseif
direction="down" then
max=tall
axis=0
placement=-sizeh
reset=-sizeh
elseif
direction="right" then
max=wide
axis=0
placement=-sizew
reset=-sizew
end
if
document.write
"<pre>"
for
temp=0 to max
if
direction="up" then
document.write
"<img id=pics"&temp&" src><br>"
elseif direction="left" then
document.write
"<img id=pics"&temp&" src>"
elseif
direction="down" then
document.write
"<img id=pics"&temp&" src><br>"
elseif
direction="right" then
document.write
"<img id=pics"&temp&" src>"
end
if
document.all("pics"&temp).src=source
next
document.write
"</pre>"
document.body.background="
"
sub
scroll()
if
nail=1 then
exit
sub
end
if
if
placement < axis then
setTimeout
"move", 1
else
placement=reset
setTimeout
"move", 1
end
if
end
sub
sub
move()
if
direction="up" then
imageholder.style.top=-placement
elseif direction="left"
then
imageholder.style.left=-placement
elseif
direction="down" then
imageholder.style.top=placement
elseif
direction="right" then
imageholder.style.left=placement
end
if
placement=placement+1
setTimeout
"scroll", 1
end
sub
sub
imageholder_onclick()
if
nail=0 then
nail=1
else
nail=0
end
if
scroll()
end
sub
scroll()
-->
</SCRIPT>
</DIV>
<script
language="JavaScript">
<!--
ScrollSpeed
= 275; // milliseconds between scrolls
ScrollChars
= 4; // chars scrolled per time period
function
SetupTicker() {
//
add space to the left of the message
msg
= ". . . . Lory Design . . . .";
RunTicker();}
function
RunTicker() {
window.setTimeout('RunTicker()',ScrollSpeed);
window.status
= msg;
msg
= msg.substring(ScrollChars) + msg.substring(0,ScrollChars);}
SetupTicker();
<!--
end -->
</script>
Creato
da Lory - 02 giugno 2005
Proprieta'
di Colorsdreams
Qualunque
somiglianza ad altri tutorial è puramente casuale.
|