+ Reply to Thread
Results 1 to 3 of 3

Thread: Scrolling Ads

  1. #1
    desicrew is offline x10Hosting Member desicrew is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    20

    Scrolling Ads

    Friends I want to add scrolling ad to my site ads which scroll as you scroll up\down can any one help me how to do this....

  2. #2
    GamingX's Avatar
    GamingX is offline Executive Team GamingX is an unknown quantity at this point
    Join Date
    Aug 2007
    Location
    Bangalore, India
    Posts
    6,353

    Re: Scrolling Ads

    I don't think it is a good idea to have scrolling ads, it acts as a nuisance to any viewers and scrolling ads are usually associated with the 'other' kinds of websites, my suggestion is don't go for scrolling ads, though if you want it someone might be along to help you, I have no idea LOL!!
    Syed
    Executive Team
    www.x10hosting.com

    Phone #: 1-888-X10-9668 -> Ext: 709

  3. #3
    Mooseman is offline x10Hosting Member Mooseman is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    90

    Re: Scrolling Ads

    If I understand you correct, you want some sort of a floating menu.

    But beware things that float, you have been warned! LOLOL
    Floating ads can be very annoying and there are methods,
    software for 'killing' those floating ads

    This will scroll on your left side of the screen, and is a very small box.
    You can change colors and size to suit your needs.
    I got this from Dynamic Drive and they are using deprecated HTML tags and does the styling in HTML, but it works.
    You can replace the text with images and/or links if you like

    Code:
    <script>
    if (!document.layers)
    document.write('<div id="divStayTopLeft" style="position:absolute">')
    </script>
    
    <layer id="divStayTopLeft">
    
    <!--EDIT BELOW CODE TO YOUR OWN MENU-->
    <table border="1" width="130" cellspacing="0" cellpadding="0">
      <tr>
        <td width="100%" bgcolor="#FFFFCC">
          <p align="center"><b><font size="4">Menu</font></b></td>
      </tr>
      <tr>
        <td width="100%" bgcolor="#FFFFFF">
          <p align="left"> Testlink<br>
    See if this floats when<br/>
    you scroll on your page
           </td>
      </tr>
    </table>
    <!--END OF EDIT-->
    
    </layer>
    
    
    <script type="text/javascript">
    
    /*
    Floating Menu script-  Roy Whittle (http://www.javascript-fx.com/)
    Script featured on/available at http://www.dynamicdrive.com/
    This notice must stay intact for use
    */
    
    //Enter "frombottom" or "fromtop"
    var verticalpos="frombottom"
    
    if (!document.layers)
    document.write('</div>')
    
    function JSFX_FloatTopDiv()
    {
    	var startX = 3,
    	startY = 150;
    	var ns = (navigator.appName.indexOf("Netscape") != -1);
    	var d = document;
    	function ml(id)
    	{
    		var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
    		if(d.layers)el.style=el;
    		el.sP=function(x,y){this.style.left=x;this.style.top=y;};
    		el.x = startX;
    		if (verticalpos=="fromtop")
    		el.y = startY;
    		else{
    		el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
    		el.y -= startY;
    		}
    		return el;
    	}
    	window.stayTopLeft=function()
    	{
    		if (verticalpos=="fromtop"){
    		var pY = ns ? pageYOffset : document.body.scrollTop;
    		ftlObj.y += (pY + startY - ftlObj.y)/8;
    		}
    		else{
    		var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
    		ftlObj.y += (pY - startY - ftlObj.y)/8;
    		}
    		ftlObj.sP(ftlObj.x, ftlObj.y);
    		setTimeout("stayTopLeft()", 10);
    	}
    	ftlObj = ml("divStayTopLeft");
    	stayTopLeft();
    }
    JSFX_FloatTopDiv();
    </script>
    :thefinger:thefinger:thefinger:thefinger:thefinger :thefinger:thefinger:thefinger:thefinger:thefinger :thefinger:thefinger:thefinger:thefinger:thefinger :thefinger:thefinger:thefinger:thefinger:thefinger :thefinger:thefinger:thefinger:thefinger:thefinger :thefinger:thefinger:thefinger:thefinger:thefinger :thefinger:thefinger:thefinger:thefinger:thefinger :thefinger

+ Reply to Thread

Similar Threads

  1. Halo Side Scrolling Game
    By moose in forum Gamer's Lounge
    Replies: 16
    Last Post: 05-08-2008, 09:48 PM
  2. scrolling text? In HTML?
    By Joker Boy in forum Tutorials
    Replies: 5
    Last Post: 04-30-2007, 02:37 PM
  3. How can you set the scrolling?
    By ƒorte in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 02-20-2006, 04:43 PM
  4. How do you make Scrolling Menu Bars and Jump Bars
    By Album in forum Free Hosting
    Replies: 3
    Last Post: 10-16-2005, 11:04 AM
  5. Add Scrolling message to the site status bar
    By wizeman in forum Tutorials
    Replies: 15
    Last Post: 08-02-2005, 03:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers