Results 1 to 3 of 3

Thread: Dreamweaver and scripts

  1. #1
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Dreamweaver and scripts

    1) Script Title: Circling text trail

    2) Script URL (on DD):http://www.dynamicdrive.com/dynamici...circletext.htm

    3) Describe problem:
    i have a problem with puting this script in my index.html on my homepage
    when i put the script in between <head></head> it doesn't show.plz help me

    my website ishttp://rmharris.exofire.net/index.html plz tell me wheter it is my site or dreamweaver or is it that im doning it wrong???

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    that is an old script,

    It doesn't support firefox. It does support IE version 6, but I am willing to bet that it wont be supported in IE7.

    This shouldn't make a difference, however try relacing the beginning script tag

    Code:
    <SCRIPT LANGUAGE="JavaScript1.2">
    with

    Code:
    <script type="text/javascript">

  3. #3
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i am using ie6 but this still does not help me here it the script

    Code:
    <!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>
    <script type="text/javascript">
    <!--//
    
    //Circling text trail- Tim Tilton
    //Website: http://www.tempermedia.com/
    //Visit http://www.dynamicdrive.com for this script and more
    
    // your message here
    var msg='Dynamic Drive!';
    
    var font='Verdana,Arial';
    var size=3; // up to seven
    var color='#000000';
    
    // This is not the rotation speed, its the reaction speed, keep low!
    // Set this to 1 for just plain rotation w/out drag
    var speed=.3;
    
    // This is the rotation speed, set it negative if you want
    // it to spin clockwise
    var rotation=.2;
    
    // Alter no variables past here!, unless you are good
    //---------------------------------------------------
    
    var ns=(document.layers);
    var ie=(document.all);
    var msg=msg.split('');
    var n=msg.length; 
    var a=size*15;
    var currStep=0;
    var ymouse=0;
    var xmouse=0;
    var scrll=0;
    var props="<font face="+font+" size="+size+" color="+color+">";
    
    if (ie)
    window.pageYOffset=0
    
    // writes the message
    	if (ns){
    	for (i=0; i < n; i++)
    		document.write('<layer name="nsmsg'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+msg[i]+'</font></center></layer>');
    	}
    	if (ie){
    		document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
    		for (i=0; i < n; i++)
    			document.write('<div id="iemsg" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center;font-weight:regular;cursor:default">'+props+msg[i]+'</font></div>');
    			document.write('</div></div>');
    	}
    	(ns)?window.captureEvents(Event.MOUSEMOVE):0;
    
    function Mouse(evnt){
    	ymouse = (ns)?evnt.pageY+20-(window.pageYOffset):event.y; // y-position
    	xmouse = (ns)?evnt.pageX+20:event.x-20; // x-position
    }
    
    if (ns||ie)
    (ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
    y=new Array();
    x=new Array();
    Y=new Array();
    X=new Array();
    for (i=0; i < n; i++){
    	y[i]=0;
    	x[i]=0;
    	Y[i]=0;
    	X[i]=0;
    }
    
    function makecircle(){ // rotation properties
    if (ie) outer.style.top=document.body.scrollTop;
    currStep-=rotation;
    	for (i=0; i < n; i++){ // makes the circle
    		var d=(ns)?document.layers['nsmsg'+i]:iemsg[i].style;
    		d.top=y[i]+a*Math.sin((currStep+i*1)/3.8)+window.pageYOffset-15;
    		d.left=x[i]+a*Math.cos((currStep+i*1)/3.8)*2; // remove *2 for just a plain circle, not oval
    	}
    }
    
    function drag(){ // makes the resistance
    	scrll=(ns)?window.pageYOffset:0;
    	y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);
    	x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);
    	for (var i=1; i < n; i++){
    		y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);
    		x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed);
    
    	}
    	makecircle();
    	// not rotation speed, leave at zero
    	setTimeout('drag()',10);
    }
    if (ns||ie)window.onload=drag;
    
    // -->
    </SCRIPT>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Rmharris - The place to be for games</title>
    <style type="text/css">
    <!--
    #Layer1 {
    	position:absolute;
    	width:200px;
    	height:115px;
    	z-index:1;
    }
    #Layer2 {
    	position:absolute;
    	width:508px;
    	height:171px;
    	z-index:2;
    	left: 224px;
    	top: 246px;
    }
    #Layer3 {
    	position:absolute;
    	width:200px;
    	height:115px;
    	z-index:3;
    	left: 773px;
    }
    #Layer4 {
    	position:absolute;
    	width:200px;
    	height:51px;
    	z-index:4;
    	top: 191px;
    }
    #Layer5 {
    	position:absolute;
    	width:200px;
    	height:51px;
    	z-index:5;
    	left: 219px;
    	top: 191px;
    }
    #Layer6 {
    	position:absolute;
    	width:200px;
    	height:51px;
    	z-index:6;
    	left: 774px;
    	top: 191px;
    }
    #Layer7 {
    	position:absolute;
    	width:200px;
    	height:115px;
    	z-index:7;
    	left: 0px;
    	top: 242px;
    }
    #Layer8 {
    	position:absolute;
    	width:200px;
    	height:115px;
    	z-index:8;
    	left: 219px;
    	top: 242px;
    }
    #Layer9 {
    	position:absolute;
    	width:200px;
    	height:115px;
    	z-index:9;
    	left: 776px;
    	top: 242px;
    }
    #Layer10 {
    	position:absolute;
    	width:507px;
    	height:476px;
    	z-index:1;
    	left: 225px;
    	top: 241px;
    	overflow: auto;
    }
    .style1 {color: #FFFFFF}
    -->
    </style>
    </head>
    
    <body bgcolor="#000000" text="#FF0000" link="#CCCCCC" vlink="#CCCCCC" alink="#CCCCCC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <table border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="219" height="191" valign="top" background="images/tablebg.gif"><img src="images/grungeskull_01.gif" width="219" height="191" /></td>
        <td width="554" height="191" valign="top" background="images/tablebg.gif"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="554" height="191">
          <param name="movie" value="..//rmharris/topheader_.swf" />
          <param name="quality" value="high" /><param name="LOOP" value="false" />
          <embed src="..//rmharris/topheader_.swf" width="555" height="191" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
        </object></td>
        <td width="251" height="191" colspan="3" valign="top" background="images/tablebg.gif"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="251" height="191">
          <param name="movie" value="skulleffect.swf" />
          <param name="quality" value="high" />
          <embed src="skulleffect.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="251" height="191"></embed>
        </object></td>
        <td width="1" height="191" valign="top"></td>
        <td width="2" height="191" valign="top"></td>
      </tr>
      <tr>
        <td width="219" height="51" valign="top"><img src="images/grungeskull_04.gif" width="219" height="51" /></td>
        <td width="554" height="51" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="554" height="51">
          <param name="movie" value="welcomeheader.swf" />
          <param name="quality" value="high" />
          <embed src="welcomeheader.swf" width="554" height="51" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
        </object></td>
        <td width="1" height="51" valign="top"></td>
        <td width="251" height="51" colspan="3" valign="top"><img src="images/grungeskull_06.gif" width="251" height="51" /></td>
        <td width="2" height="51" valign="top"></td>
      </tr>
      <tr>
        <td width="219" height="506" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="219" height="506">
          <param name="movie" value="menu.swf" />
          <param name="quality" value="high" />
          <embed src="menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="219" height="506"></embed>
        </object><script type="text/javascript" src="ieupdate.js"></script></td>
        <td width="554" height="506" valign="top" background="images/grungeskull_08.gif"><div id="Layer2">
          <p><font color="#FF0000" size="2" face="Arial, Helvetica, sans-serif">Welcome to Ricky Harris's website plz click on Board to go to my forums or click </font><font size="2" face="Arial, Helvetica, sans-serif"><a href="http://rmharris.exofire.net/forum/" class="style1"> HERE</a></font>  <strong>- Sign up today -</strong> </p>
          <p>News will be updated here often......</p>
          <p>Admins of these forums are allways on......Follow the rules or risk being banned if you sign up.</p>
          <p>&nbsp;</p>
        </div>
        </td>
        <td width="1" height="506" valign="top"></td>
        <td width="2" height="506" valign="top"></td>
        <td width="251" height="506" colspan="3" valign="top"><img src="images/grungeskull_09.gif" width="251" height="506" /></td>
      </tr>
      <tr>
        <td width="219" height="1" valign="top"><img src="transparent.gif" alt="" width="219" height="1" /></td>
        <td width="554" height="1" valign="top"><img src="transparent.gif" alt="" width="554" height="1" /></td>
        <td width="1" height="1" valign="top"><img src="transparent.gif" alt="" width="1" height="1" /></td>
        <td width="2" height="1" valign="top"><img src="transparent.gif" alt="" width="2" height="1" /></td>
        <td width="248" height="1" valign="top"><img src="transparent.gif" alt="" width="248" height="1" /></td>
        <td width="1" height="1" valign="top"><img src="transparent.gif" alt="" width="1" height="1" /></td>
        <td width="2" height="1" valign="top"><img src="transparent.gif" alt="" width="2" height="1" /></td>
      </tr>
    </table><table width="100%">
      <tr>
        <td><div align="center"><a href="http://www.webtemplateszone.com"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">&copy;2007 webtemplateszone.com free flash templates </font></a></div></td>
      </tr>
    </table>
    
    </body>
    </html>
    yet this is still not helping me plz someone help.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •