Re: Como Agrego un *.js a mi web con dreanweaver GRacias por la ayuda Este es el codigo de la web.....
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
<!--
.menu {font-family:Arial; font-weight:bold}
.menu a{
text-decoration:none;
color:black;
}
-->
</style>
<style>
#divMenu {font-family:arial,helvetica; font-size:12pt; font-weight:bold}
#divMenu a{text-decoration:none;}
#divMenu a:hover{color:red;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Vermouth con papa fritas y good show...</title>
<style type="text/css">
<!--
body,td,th {
color: #F0F0F0;
}
body {
background-color: #000000;
}
#Layer1 {
position:absolute;
width:678px;
height:99px;
z-index:1;
left: 26px;
top: 30px;
}
#Layer2 {
position:absolute;
width:947px;
height:33px;
z-index:2;
left: 14px;
top: 199px;
}
#Layer3 {
position:absolute;
width:216px;
height:127px;
z-index:3;
left: 697px;
top: 21px;
}
.Estilo3 {color: #0000FF}
#Layer4 {
position:absolute;
width:371px;
height:182px;
z-index:4;
left: 45px;
top: 248px;
background-image: url(Imagenes/Collage.JPG);
}
#Layer5 {
position:absolute;
width:309px;
height:33px;
z-index:4;
left: 311px;
top: 269px;
}
#Layer6 {
position:absolute;
width:200px;
height:329px;
z-index:5;
left: 19px;
top: 260px;
}
#Layer7 {
position:absolute;
width:153px;
height:346px;
z-index:5;
left: 15px;
top: 250px;
}
.google-src-text {display: none !important}
#Layer8 {
position:absolute;
width:517px;
height:121px;
z-index:5;
left: 270px;
top: 26px;
}
#Layer9 {
position:absolute;
width:175px;
height:161px;
z-index:6;
left: 223px;
top: 449px;
}
#Layer10 {
position:absolute;
width:798px;
height:1483px;
z-index:7;
left: 164px;
top: 438px;
}
#Layer11 {
position:absolute;
width:173px;
height:163px;
z-index:1;
left: 283px;
top: 12px;
}
#Layer12 {
position:absolute;
width:186px;
height:143px;
z-index:2;
left: 528px;
top: 13px;
}
-->
</style>
<script>
<!-- Beginning of JavaScript -
var i_strength=0
var i_color=0
var max_strength=400
var shadowcolor=new Array()
shadowcolor[0]="FFFFFF"
shadowcolor[1]="EEEEEE"
shadowcolor[2]="DDDDDD"
shadowcolor[3]="CCCCCC"
shadowcolor[4]="BBBBBB"
shadowcolor[5]="AAAAAA"
shadowcolor[6]="999999"
shadowcolor[7]="888888"
shadowcolor[8]="777777"
shadowcolor[9]="666666"
shadowcolor[10]="555555"
shadowcolor[11]="444444"
shadowcolor[12]="333333"
shadowcolor[13]="222222"
shadowcolor[14]="111111"
shadowcolor[15]="000000"
shadowcolor[16]="000000"
shadowcolor[17]="000000"
shadowcolor[18]="000000"
shadowcolor[19]="000000"
shadowcolor[20]="000000"
shadowcolor[21]="000000"
shadowcolor[22]="000000"
shadowcolor[23]="000000"
shadowcolor[24]="000000"
var timer
var speed=20
var thisobj
function stopfilter(thisdiv){
if (document.all) {
i_strength=0
i_color=0
clearTimeout(timer)
thisobj=thisdiv
thisobj.style.filter=" "
}
}
function startfilter(thisdiv){
if (document.all) {
i_strength=0
i_color=0
clearTimeout(timer)
thisobj=thisdiv
morefilter()
}
}
function morefilter(){
if (i_strength <=max_strength) {
thisobj.style.filter="dropShadow(color="+shadowcol or[i_color]+", offx="+i_strength+",offy=0)"
i_strength=i_strength+20
i_color++
timer = setTimeout("morefilter()",speed)
}
else {
clearTimeout(timer)
lessfilter()
}
}
function lessfilter(){
if (i_strength >=0) {
thisobj.style.filter="dropShadow(color="+shadowcol or[i_color]+",offx="+i_strength+",offy=0)"
i_strength=i_strength-20
i_color--
timer = setTimeout("lessfilter()",speed)
}
else {
clearTimeout(timer)
makepause()
}
}
function makepause(){
timer = setTimeout("morefilter()",1000)
}
var isNav = (navigator.appName.indexOf("Netscape")!=-1)
var colors = new Array("FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF" ,"FFFFFF","FFFFFF","F9F9F9","F1F1F1","E9E9E9","E1E 1E1","D9D9D9","D1D1D1","C9C9C9","C1C1C1","B9B9B9", "B1B1B1","A9A9A9","A1A1A1","999999","919191","8989 89","818181","797979","717171","696969","616161"," 595959","515151","494949","414141","393939","31313 1","292929","212121","191919","111111","090909","0 00000")
var i = -37
var msg = 0
var linkto = new Array()
linkto[0]="Home"
linkto[1]="Animator"
linkto[2]="Multimedia"
linkto[3]="Platypus Web Builder"
linkto[4]="Draw Magic"
linkto[5]="Antechinus C# Editor"
linkto[6]="JavaScript"
linkto[7]="Media Editor"
linkto[8]="Email C Point"
function startStrobe(msgnum)
{msg=msgnum
strobeEffect(msg,-37)}
function strobeEffect(msgnum,i)
{msg=msgnum
if (i < 38)
{starttable = "<table width=200><td><center><font color=" + colors[Math.abs(i)] + " size=+2>"
endtable = "</font></a></center></td></table>"
fulltable = starttable + linkto[msg] + endtable
j = i + 1
if(isNav)
{document.object0.document.write(fulltable)
document.object0.document.close()}
else {object0.innerHTML = fulltable}
}
else {return false}
setTimeout("strobeEffect(msg,j)",20)
}
<!--
//var d = (navigator.userAgent.indexOf("MSIE 5")>-1) ;
if (parent && parent.gal_main) parent.gal_main.location='online/?station=101';
var d =(parseInt(navigator.appVersion)>=4 && navigator.appName=="Microsoft Internet Explorer");
items=9 ;
fade_increment = new Array(items) ;
fade_present = new Array(items) ;
currentbranch=-1;
colordepth = new Array(10);
colordepth[0]="#707070";
colordepth[1]="#808080";
colordepth[2]="#909090";
colordepth[3]="#a0a0a0";
colordepth[4]="#b0b0b0";
colordepth[5]="#c0c0d0";
colordepth[6]="#d0d0d0";
colordepth[7]="#e0e0e0";
colordepth[8]="#f0f0f0";
colordepth[10]="#ffffff";
started=false ;
for (i=0;i<items;i++) {
fade_increment[i]=0;
fade_present[i]=0;
}
function s(item,statustext) {
window.status=(statustext?statustext:' ');
if (started && d) {
var curr=item;
fade_increment[curr]=(statustext?40:-7);
}
return true;
}
function fadeloop() {
rep="";
for (i=0;i<fade_increment.length;i++) {
rep+=" "+fade_present[i];
fade_present[i]+=fade_increment[i] ;
if (fade_present[i]>=100) {
fade_present[i]=100;
fade_increment[i]=0;
}
else if (fade_present[i]<=0) {
fade_present[i]=0;
fade_increment[i]=0;
}
if (document.all['i'+i]) document.all['i'+i].style.color=colordepth[Math.round(fade_present[i]/10)];
}
setTimeout('fadeloop()',50) ;
}
function tog(b) {
if (d) {
if (currentbranch==b) {
document.all["s"+b].style.display='none';
currentbranch=-1;
} else {
if (currentbranch>-1) document.all["s"+currentbranch].style.display='none';
document.all["s"+b].style.display='block';
currentbranch=b;
}
}
}
function positionitems() {
for (a=0;a<items;a++) {
document.all["t"+a].style.top=a*10;
}
}
function start() {
// positionitems();
started=true ;
if (d) fadeloop() ;
}
function dropMenu() {
speed=5;
topdistance=100;
items=9;
y=-50;
ob=1;
if (navigator.appName == "Netscape") {
v=".top=",dS="document.",sD="";
}
else {
v=".pixelTop=",dS="",sD=".style";
}
}
function scrollItems() {
if (ob<items+1) {
objectX="object"+ob; y+=10; eval(dS + objectX + sD + v + y);
if (y<topdistance) setTimeout("scrollItems()",speed);
else y=-50, topdistance+=40, ob+=1, setTimeout("scrollItems()",speed);
}
}
// End -->
</SCRIPT>
</head>
<body onload="escrolea()" bodyonLoad="dropMenu(), scrollItems(), start();" BGCOLOR="Black" TEXT="white" >
</body>
</html> |