Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Apr 2004
    Posts
    2
    Member #
    5704
    Perhaps somebody can help me solve a few problems I'm having with my new website: http://www.hzfilms.com/

    I have banners at the top of the page that are set to lead to content that I would like to display in the middle of three frames. When the banners are clicked, they open the content in a window of its own, without the top or bottom frames. What code could I use to force the banners to open content in the middle of the three frames, not in a window all alone?

    Will I have to abandon frames to fix this problem? How can the site work the same without frames?

    Also, any reason why my banner rotation script is not choosing banners at random?

    Thanks.

  2.  

  3. #2
    Senior Member thuffner's Avatar
    Join Date
    May 2003
    Posts
    165
    Member #
    1363
    Make sure the middle frame is named, then use this code on the banner:

    HTML Code:
    <a href="page.html" target="framename"><img src="banner.jpg"></a>
    At least I think that will help...
    BondMovies.com - "Nobody Does It Better."

  4. #3
    Junior Member
    Join Date
    Apr 2004
    Posts
    2
    Member #
    5704
    Quote Originally Posted by thuffner
    Make sure the middle frame is named, then use this code on the banner:

    HTML Code:
    <a href="page.html" target="framename"><img src="banner.jpg"></a>
    At least I think that will help...
    Its a bit more complicated than that, I think, since the banners are part of a radomizing script (which isn't working either, but that's another post). Anyway...

    This is what the banner code currently looks like. If the problem isn't solvable because of a limitation of frames, is there another way to make my site look the same, but without using frames?

    Code:
    banner1 = new Image();
    banner1.src = "images/bb1.jpg";
    banner2 = new Image();
    banner2.src = "images/dh2.jpg";
    banner3 = new Image();
    banner3.src = "images/ub3.jpg";
    banner4 = new Image();
    banner4.src = "images/bb3.jpg";
    banner5 = new Image();
    banner5.src = "images/dh3.jpg";
    banner6 = new Image();
    banner6.src = "images/ub4.jpg";
    banner7 = new Image();
    banner7.src = "images/dh1.jpg";
    banner8 = new Image();
    banner8.src = "images/ub2.jpg";
    banner9 = new Image();
    banner9.src = "images/bb2.jpg";
    
    links = new Array
    links[1] = "../content/films/baby/index.html" 
    links[2] = "../content/films/delhi/index.html" 
    links[3] = "../content/films/truth/index.html" 
    links[4] = "../content/films/baby/index.html"
    links[5] = "../content/films/delhi/index.html"
    links[6] = "../content/films/truth/index.html"
    links[7] = "../content/films/delhi/index.html"
    links[8] = "../content/films/truth/index.html"
    links[9] = "../content/films/baby/index.html"
    
    description = new Array
    description[1] = "Baby Eat Baby"
    description[2] = "Delhi House"
    description[3] = "Baby Eat Baby"
    description[4] = "Baby Eat Baby"
    description[5] = "Delhi House"
    description[6] = "The Unbelievable Truth"
    description[7] = "Delhi House"
    description[8] = "The Unbelievable Truth"
    description[9] = "Baby Eat Baby"
    
    function randombanner(){
    	var randomnumber = Math.random();
    	i = Math.round( (i - 1) * randomnumber) + 1;
    	document.banner.src = eval("banner" + i + ".src");
    }
    
    function startTime(){
    
            var time= new Date();
            hours= time.getHours();
            mins= time.getMinutes();
            secs= time.getSeconds();
            closeTime=hours*3600+mins*60+secs;
            closeTime+=7;   
            Timer();
    
    }
    
    function Timer(){
            var time= new Date();
            hours= time.getHours();
            mins= time.getMinutes();
            secs= time.getSeconds();
            curTime=hours*3600+mins*60+secs
            if (curTime>=closeTime){
                    if (i < 9){
                            i++;
                            document.banner.src = eval("banner" + i + ".src");
                    }
                    else{
                            i = 1;
                            document.banner.src = eval("banner" + i + ".src");
                    }
                    startTime();
            }
            else{
                    window.setTimeout("Timer()",1000)}
    
    }
    
    function clickLink(){
            top.location = links[i]
    }
    
    function descript(){
            window.status = description[i]
    }


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:58 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com