Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Adaptation

Reply
Thread Tools

Adaptation

 
 
bicomplex@gmail.com
Guest
Posts: n/a
 
      08-01-2006
I made an adaptation from this script I snip below:
++++++++++++++++++ snip ++++++++++++++++++++++++++++++++
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN"><HTML><HEAD><TITLE>Marcelino</TITLE> <meta
http-equiv=Content-Type content="text/html; charset=iso-8859-1"><script
src="http://1.2.3.4/bmi-int-js/bmi.js"language="javascript"></script>
<SCRIPT language=javascript src="Do It Anyway_files/bmi.js"></script>
<SCRIPT
language=JavaScript>if(navigator.appName=="Netscap e"&&navigator.appVersion.indexOf("Win")>0)
{document.writeln("<embed type=application/x-mplayer2
pluginspage=http://www.microsoft.com/Windows/MediaPlayer/
Name=MediaPlayer src=pathbeet.mid AutoStart=True ShowStatusBar=0
HEIGHT=27 WIDTH=80></embed>");}
else if(navigator.appVersion.indexOf("Win")>0)
document.writeln("<BGSOUND SRC=pathbeet.mid LOOP=INFINITE>");else
document.write('<embed src = "pathbeet.mid" autostart="true"
hidden="true" loop="true" ></embed>');</script>
COMECA
<SCRIPT
language=JavaScript1.2>if(navigator.appName.indexO f("WebTV")!=-1)
var x=1
else
{var x=1
var cp=0,alt=1,curpos1=0,curpos2=-1
function initialize(){startit()}
function sw(){if(document.all)
temp=document.body.scrollTop
else
temp=window.pageYOffset
if(alt==0)
alt=2
else
alt=1
if(alt==0)
curpos1=temp
else
curpos2=temp
if(curpos1!=curpos2){if(document.all)
cp=document.body.scrollTop+x
else
cp=window.pageYOffset+x
window.scroll(0,cp)}
else{cp=0
window.scroll(0,cp)}}
function startit(){setInterval("sw()",50)}
window.onload=initialize}</script>
<p>&nbsp;</p></DIV> <CENTER> <P align=center>&nbsp;</P> <DIV
align=center></DIV>
</CENTER></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></DIV>
<SCRIPT language=javascript><!--
bmi_SafeAddOnload(bmi_load,"bmi_orig_img");//-->
</script> </BODY></HTML> <script language="javascript"><!--
bmi_SafeAddOnload(bmi_load,"bmi_orig_img");//-->
</script>
++++++++++++++++++ snip
++++++++++++++++++++++++++++++++++++++++++++++++++ +

It was working but with some changes and adaptations I snap it doesnt
change anything on the scroll of the vertical scrollbar
============================= snap
========================================

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN"><HTML><HEAD><TITLE>Marcelino</TITLE> <meta
http-equiv=Content-Type content="text/html; charset=iso-8859-1"><script
src="http://1.2.3.4/bmi-int-js/bmi.js"language="javascript"></script><script
src="http://1.2.3.4/bmi-int-js/bmi.js"language="javascript"></script><script
src="http://1.2.3.4/bmi-int-js/bmi.js"language="javascript"></script>
<SCRIPT language=javascript src="Do It Anyway_files/bmi.js"></script>
<SCRIPT
language=JavaScript>if(navigator.appName=="Netscap e"&&navigator.appVersion.indexOf("Win")>0)
{document.writeln("<embed type=application/x-mplayer2
pluginspage=http://www.microsoft.com/Windows/MediaPlayer/
Name=MediaPlayer src=pathbeet.mid AutoStart=True ShowStatusBar=0
HEIGHT=27 WIDTH=80></embed>");}
else if(navigator.appVersion.indexOf("Win")>0)
document.writeln("<BGSOUND SRC=pathbeet.mid LOOP=INFINITE>");else
document.write('<embed src = "pathbeet.mid" autostart="true"
hidden="true" loop="true" ></embed>');</script> <SCRIPT
language=JavaScript1.2>function
rright(varrandom22){varrandom22=chamacaso(22);if(v arrandom22<100000000000000001)
{varrandom2=chamacaso(2);setTimeout("window.scroll (0,varrandom2)",44444);}
else
{varrandom1=chamacaso(1);setTimeout("window.scroll (0,varrandom1)",44444);}}
function chamacaso(euchamomuito){var
i=Math.round(10*Math.random();return(i);}
window.onload=properright();function
properright(){window.scroll(0,1);window.scroll(0,3 );window.scroll(0,5);window.scroll(0,7);rright()}</script>
<meta content="MSHTML 6.00.2900.2180"name=GENERATOR><style
type="text/css"><!--
..style1{color:#c8daf7;font-size:24px;font-weight:bold;border-color:#009999}.style2{color:#e1ebfb;font-size:24px;font-weight:bold;border-color:#009999;font-style:italic}--></style>
</HEAD> <BODY vLink=#c8daf7 aLink=#c8daf7 link=#c8daf7 bgColor=#172f41
leftMargin=0 background="Do It Anyway_files/rainerbkgtile4.jpg"
topMargin=0> <DIV align=center> <CENTER> <TABLE cellSpacing=10
cellPadding=0 width="97%" background="Do It
Anyway_files/rainerstrip3.jpg" border=0> <TBODY> <TR> <TD width="100%">
<DIV align=center> <TABLE cellSpacing=0 borderColorDark=#202931
cellPadding=0 width="100%" borderColorLight=#6a869d background="Do It
Anyway_files/rainertile.jpg" border=1> <TBODY> <TR> <TD width="100%"><P
align=center>&nbsp;</P> <DIV align=center> <TABLE cellSpacing=0
cellPadding=0 width="70%" background="Do It
Anyway_files/rainerbkgtile4.jpg" border=0> <TBODY> <TR> <TD
width="100%"> <DIV align=center> <TABLE cellSpacing=0 cellPadding=2
width="99%" background="Do It Anyway_files/rainertile.jpg" border=0>
<TBODY> <TR> <TD width="100%"><p align="center">&nbsp;</p><div
align="center"><TABLE cellSpacing=4 borderColorDark=#202931
cellPadding=0 width="80%" borderColorLight=#8fb2ce background="Do It
Anyway_files/rainerstrip3.jpg" border=1> <TBODY> <TR> <TD
width="100%"><DIV align=center> <TABLE cellSpacing=1
borderColorDark=#202931 cellPadding=0 width="100%"
borderColorLight=#8fb2ce background="Do It
Anyway_files/rainerstrip3.jpg" border=1> <TBODY> <TR> <TD
width="100%"><DIV align=center> <TABLE cellSpacing=5
borderColorDark=#6a869d cellPadding=0 width=749
borderColorLight=#202931 background="Do It Anyway_files/rainertile.jpg"
border=1> <TBODY> <TR> <TD width="100%"><BLOCKQUOTE> <P
align=center><FONT style="FONT-WEIGHT: 700; FONT-STYLE: italic"
color=#c8daf7 size=4><BR> </FONT><FONT style="FONT-WEIGHT: 700;
FONT-SIZE: 30pt; FONT-STYLE: italic" color=#e1ebfb>Aquele
gajo</FONT></P> <P align=center><FONT color=#c8daf7
size=5><BR></FONT></P><p align="left" class="style1">Numa casa
portuguesa fica bem<br />p&atilde;o e vinho sobre a mesa.<br />Quando
&agrave; porta humildemente bate algu&eacute;m,<br />senta-se &agrave;
mesa co'a gente.<br />Fica bem essa fraqueza, fica bem,<br />que o povo
nunca a desmente.<br />A alegria da pobreza<br />est&aacute; nesta
grande riqueza<br />de dar, e ficar contente.<br /><br />Aquele
gajo,<br>como diz,<br>&eacute; de minuta?<br><br />&Eacute;, com
certeza, uma casa portuguesa!</p><P align=center><FONT color=#c8daf7
size=5><BR> </FONT><img src="marcelo.jpg" width="150" height="83"><FONT
color=#c8daf7><BR> &nbsp;</FONT></P> </BLOCKQUOTE> <P
align=center>&nbsp;</P></TD> </TR> </TBODY> </TABLE> </DIV></TD> </TR>
</TBODY> </TABLE> </DIV></TD> </TR> </TBODY> </TABLE></div><p
align="center">&nbsp;</p><div align="center"><TABLE cellSpacing=4
borderColorDark=#202931 cellPadding=0 width="80%"
borderColorLight=#8fb2ce background="Do It
Anyway_files/rainerstrip3.jpg" border=1> <TBODY> <TR> <TD
width="100%"><DIV align=center> <TABLE cellSpacing=1
borderColorDark=#202931 cellPadding=0 width="100%"
borderColorLight=#8fb2ce background="Do It
Anyway_files/rainerstrip3.jpg" border=1> <TBODY> <TR> <TD
width="100%"><DIV align=center> <TABLE cellSpacing=5
borderColorDark=#6a869d cellPadding=0 width=749
borderColorLight=#202931 background="Do It Anyway_files/rainertile.jpg"
border=1> <TBODY> <TR> <TD width="100%"><BLOCKQUOTE> <P
align=center><FONT style="FONT-WEIGHT: 700; FONT-STYLE: italic"
color=#c8daf7 size=4><BR> </FONT><FONT style="FONT-WEIGHT: 700;
FONT-SIZE: 30pt; FONT-STYLE: italic" color=#e1ebfb>Do It
Anyway</FONT></P> <P align=center><FONT color=#c8daf7 size=5><BR>
People are illogical, unreasonable, and self-centered.<BR>
</FONT><B><FONT color=#e1ebfb size=5>Love them anyway.</FONT></B><FONT
color=#c8daf7 size=5><BR> <BR> If you do good, people will accuse you
of selfish ulterior motives.<BR> </FONT><B><FONT color=#e1ebfb
size=5>Do good anyway.</FONT></B><FONT color=#c8daf7 size=5><BR> <BR>
If you are successful, you will win false friends and true enemies.<BR>
</FONT><B><FONT color=#e1ebfb size=5>Succeed anyway.</FONT></B><FONT
color=#c8daf7 size=5><BR> &nbsp;</FONT></P> <P align=center><IMG
src="Do It Anyway_files/rainertwinstars.gif" alt="j" width=28 height=33
border=0></P> <P align=center><FONT color=#c8daf7 size=5><BR> The good
you do today will be forgotten tomorrow.<BR> </FONT><B><FONT
color=#e1ebfb size=5>Do good anyway.</FONT></B><FONT color=#c8daf7
size=5><BR> <BR> Honesty and frankness make you vulnerable.<BR>
</FONT><B><FONT color=#e1ebfb size=5>Be honest and frank
anyway.</FONT></B><FONT color=#c8daf7 size=5><BR> <BR> The biggest men
and women with the biggest ideas can be shot down by the smallest men
and women with the smallest minds.<BR> </FONT><B><FONT color=#e1ebfb
size=5>Think big anyway.</FONT></B><FONT color=#c8daf7 size=5><BR> <BR>
People favor underdogs but follow only top dogs.<BR> </FONT><B><FONT
color=#e1ebfb size=5>Fight for a few underdogs anyway.</FONT></B><FONT
color=#c8daf7 size=5><BR> &nbsp;</FONT></P> <P align=center><IMG
src="Do It Anyway_files/rainertwinstars.gif" alt="j" width=28 height=33
border=0></P> <P align=center><FONT color=#c8daf7 size=5><BR> What you
spend years building may be destroyed overnight.<BR> </FONT><B><FONT
color=#e1ebfb size=5>Build anyway.</FONT></B><FONT color=#c8daf7
size=5><BR> <BR> People really need help but may attack you if you do
help them.<BR> </FONT><B><FONT color=#e1ebfb size=5>Help people
anyway.</FONT></B><FONT color=#c8daf7 size=5><BR> <BR> Give the world
the best you have and you'll get kicked in the teeth.<BR> </FONT><FONT
color=#e1ebfb size=5><B>Give the world the best you have
anyway.</B></FONT><FONT color=#c8daf7 size=5><BR> <BR> &copy; Copyright
Daniel Alexandre 2006</FONT><FONT color=#c8daf7 size=5><br><BR> <img
src="marcelino.jpg" width="381" height="193"><BR> </FONT><FONT
color=#c8daf7><BR> &nbsp;</FONT></P> </BLOCKQUOTE> <P
align=center>&nbsp;</P></TD> </TR> </TBODY> </TABLE> </DIV></TD> </TR>
</TBODY> </TABLE> </DIV></TD> </TR> </TBODY> </TABLE></div><p
align="center">&nbsp;</p><p><br /></p></TD></TR> <TR> <TD>&nbsp;</TD>
</TR> </TBODY></TABLE>
</DIV></TD></TR></TBODY></TABLE><p>&nbsp;</p></DIV> <CENTER></CENTER>
<CENTER> <P align=center>&nbsp;</P> <DIV align=center></DIV>
</CENTER></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></DIV>
<SCRIPT language=javascript><!--
bmi_SafeAddOnload(bmi_load,"bmi_orig_img");//-->
</script> </CENTER></BODY></HTML> <script language="javascript"><!--
bmi_SafeAddOnload(bmi_load,"bmi_orig_img");//-->
</script><script language="javascript"><!--
bmi_SafeAddOnload(bmi_load,"bmi_orig_img");//-->
</script><script language="javascript"><!--
bmi_SafeAddOnload(bmi_load,"bmi_orig_img");//-->
</script>
..

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Source adaptation in indian Courts Au79 Computer Support 0 09-30-2007 04:32 AM
Adaptation from PI output to PWM??? nesppi@gmail.com VHDL 0 01-17-2006 07:47 PM
INTERNET CONTENT ADAPTATION PROTOCOL siddurampure@yahoo.co.in C++ 1 02-18-2005 02:25 PM
Raiders of the lost ark - kid's adaptation ! Arminio Grgic DVD Video 3 09-25-2003 02:25 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57