Results 1 to 3 of 3

Thread: No more Random

  1. #1

    Thread Starter
    Frenzied Member joefox's Avatar
    Join Date
    Oct 2004
    Posts
    1,318

    No more Random

    On one of my websites it has a script that generates random images each time the page is loading.
    How do I make them static, and no go random, it seems google adsense dosent like them being random

    PHP Code:
    <?


    // adsense index Grid
    $iGadsense = array(
        '<div class="iG-234" onclick="window.location.href=\'/Layouts\'"><div class="iG-titleG"><strong style="color:#' . $randomColors[$random10[0]] . '; text-decoration:underline">Layouts</strong></div><div class="iG-textG">Premade Layouts, Layout Generator, Holiday Themed Layouts...</div><div class="iG-linkG">View all Layouts</div></div>',
        '<div class="iG-234" onclick="window.location.href=\'/Images\'"><div class="iG-titleG"><strong style="color:#' . $randomColors[$random10[1]] . '; text-decoration:underline">Images</strong></div><div class="iG-textG">Family Guy, Female Celebrities, Love Images, The Simpsons...</div><div class="iG-linkG">More Images</div></div>',
        '<div class="iG-234" onclick="window.location.href=\'/Cursors\'"><div class="iG-titleG"><strong style="color:#' . $randomColors[$random10[2]] . '; text-decoration:underline">Cursors</strong></div><div class="iG-textG">Smilies, Funny, Animated Cursors...</div><div class="iG-linkG">All Cursors</div></div>',
        '<div class="iG-234" onclick="window.location.href=\'/Movies\'"><div class="iG-titleG"><strong style="color:#' . $randomColors[$random10[3]] . '; text-decoration:underline">Movies</strong></div><div class="iG-textG">Funny, Shocking, Sexy...</div><div class="iG-linkG">See all Movies</div></div>',
        '<div class="iG-234" onclick="window.location.href=\'/Tweaks\'"><div class="iG-titleG"><strong style="color:#' . $randomColors[$random10[4]] . '; text-decoration:underline">Tweaks</strong></div><div class="iG-textG">Rverse Friends, Hide Last Login, CommentImages, Remove...</div><div class="iG-linkG">All Tweaks</div></div>',
        '<div class="iG-234" onclick="window.location.href=\'/Basic_Codes\'"><div class="iG-titleG"><strong style="color:#' . $randomColors[$random10[5]] . '; text-decoration:underline">Code Basics</strong></div><div class="iG-textG">Color Chart, Special Characters, Game Codes, Hover Codes...</div><div class="iG-linkG">Play Games</div></div>',
        '<div class="iG-234" onclick="window.location.href=\'/Games\'"><div class="iG-titleG"><strong style="color:#' . $randomColors[$random10[6]] . '; text-decoration:underline">Games</strong></div><div class="iG-textG">Deal or no Deal, Whack a Hole, Wheezer Jam Session...</div><div class="iG-linkG">Complete List</div></div>',
        '<script type="text/javascript"> google_ad_client = "' . $adsensePub . '"; google_alternate_color = "33333"; google_ad_width = 234; google_ad_height = 60; google_ad_format = "234x60_as"; google_ad_type = "text"; google_ad_channel ="' . $adsenseChannelIndex . '"; google_color_border = "333333"; google_color_bg = "B3B3B3"; google_color_link = "' . $randomColors[$random10[7]] . '"; google_color_url = "B7DE41"; google_color_text = "7C7C7C"; </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>',
        '<script type="text/javascript"> google_ad_client = "' . $adsensePub . '"; google_alternate_color = "333333"; google_ad_width = 234; google_ad_height = 60; google_ad_format = "234x60_as"; google_ad_type = "text"; google_ad_channel ="' . $adsenseChannelIndex . '"; google_color_border = "333333"; google_color_bg = "B3B3B3"; google_color_link = "' . $randomColors[$random10[8]] . '"; google_color_url = "B7DE41"; google_color_text = "7C7C7C"; </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>',
        '<script type="text/javascript"> google_ad_client = "' . $adsensePub . '"; google_alternate_color = "131313"; google_ad_width = 234; google_ad_height = 60; google_ad_format = "234x60_as"; google_ad_type = "text"; google_ad_channel ="' . $adsenseChannelIndex . '"; google_color_border = "333333"; google_color_bg = "B3B3B3"; google_color_link = "' . $randomColors[$random10[9]] . '"; google_color_url = "B7DE41"; google_color_text = "7C7C7C"; </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>',
        );

    // ypn index Grid
    $iGypn = array( 
        '<div class="iG-234" onclick="window.location.href=\'/Layouts\'"><div class="iG-linkY">View all layouts</div><div class="iG-titleY"><strong style="color:#' . $randomColors[$random10[0]] . '; text-decoration:underline">Layouts</strong></div><div class="iG-textY">Premade Layouts, Layout Generator, Holiday Themed Layouts...</div></div>',
        '<div class="iG-234" onclick="window.location.href=\'/Images\'"><div class="iG-linkY">More Images</div><div class="iG-titleY"><strong style="color:#' . $randomColors[$random10[1]] . '; text-decoration:underline">Images</strong></div><div class="iG-textY">Family Guy, Female Celebrities, Love Images, The Simpsons...</div></div>',
        '<div class="iG-234" onclick="window.location.href=\'/Cursors\'"><div class="iG-linkY">View All Cursors</div><div class="iG-titleY"><strong style="color:#' . $randomColors[$random10[2]] . '; text-decoration:underline">Cursors</strong></div><div class="iG-textY">Smilies, Funny, Animated Cursors...</div></div>',
        '<div class="iG-234" onclick="window.location.href=\'/Movies\'"><div class="iG-linkY">See all Movies</div><div class="iG-titleY"><strong style="color:#' . $randomColors[$random10[3]] . '; text-decoration:underline">Movies</strong></div><div class="iG-textY">Funny, Shocking, Sexy...</div></div>',
        '<div class="iG-234" onclick="window.location.href=\'/Tweaks\'"><div class="iG-linkY">All Tweaks</div><div class="iG-titleY"><strong style="color:#' . $randomColors[$random10[4]] . '; text-decoration:underline">Tweaks</strong></div><div class="iG-textY">Rverse Friends, Hide Last Login, CommentImages, Remove...</div></div>',
        '<div class="iG-234" onclick="window.location.href=\'/Basic_Codes\'"><div class="iG-linkY">Complete List</div><div class="iG-titleY"><strong style="color:#' . $randomColors[$random10[5]] . '; text-decoration:underline">Code Basics</strong></div><div class="iG-textY">Color Chart, Special Characters, Game Codes, Hover Codes...</div></div>',
        '<div class="iG-234" onclick="window.location.href=\'/Games\'"><div class="iG-linkY">Flash Games Free</div><div class="iG-titleY"><strong style="color:#' . $randomColors[$random10[6]] . '; text-decoration:underline">Games</strong></div><div class="iG-textY">Deal or no Deal, Whack a Hole, Wheezer Jam Session...</div></div>',
        '<script language="JavaScript" type="text/javascript"> ctxt_ad_partner = "' . $ypnPartner . '"; ctxt_ad_section = "' . $ypnSectionIndex . '"; ctxt_ad_bg = "131313"; ctxt_ad_width = 234; ctxt_ad_height = 60; ctxt_ad_bc = "131313"; ctxt_ad_cc = "131313"; ctxt_ad_lc = "' . $randomColors[$random10[7]] . '"; ctxt_ad_tc = "7c7c7c"; ctxt_ad_uc = "7c7c7c";</script><script language="JavaScript" src="http://ypn-js.overture.com/partner/js/ypn.js"></script>',
        '<script language="JavaScript" type="text/javascript"> ctxt_ad_partner = "' . $ypnPartner . '"; ctxt_ad_section = "' . $ypnSectionIndex . '"; ctxt_ad_bg = "131313"; ctxt_ad_width = 234; ctxt_ad_height = 60; ctxt_ad_bc = "131313"; ctxt_ad_cc = "131313"; ctxt_ad_lc = "' . $randomColors[$random10[8]] . '"; ctxt_ad_tc = "7c7c7c"; ctxt_ad_uc = "7c7c7c";</script><script language="JavaScript" src="http://ypn-js.overture.com/partner/js/ypn.js"></script>',
        '<script language="JavaScript" type="text/javascript"> ctxt_ad_partner = "' . $ypnPartner . '"; ctxt_ad_section = "' . $ypnSectionIndex . '"; ctxt_ad_bg = "131313"; ctxt_ad_width = 234; ctxt_ad_height = 60; ctxt_ad_bc = "131313"; ctxt_ad_cc = "131313"; ctxt_ad_lc = "' . $randomColors[$random10[9]] . '"; ctxt_ad_tc = "7c7c7c"; ctxt_ad_uc = "7c7c7c";</script><script language="JavaScript" src="http://ypn-js.overture.com/partner/js/ypn.js"></script>',
        );

    // index Grid logic
    if ($adnetwork == "google"){$iGCell = $iGadsense;}
        elseif($adnetwork == "yahoo"){$iGCell = $iGypn;}
        else{$iGCell = $iGypn;}; 

    /*******************************************************************************************/
    ### END LOGIC - 

    ?>
    <div id="featuredRider" class="w11"><div class="w12"><div class="w13"><div class="w14">
    &nbsp;
    </div></div></div></div>

    <div id="indexGrid" class="w11"><div class="w12"><div class="w13"><div class="w14">
        <div id="indexGrid-c1">
            <div class="indexGrid-r1"><?=$iGCell[$random10[0]];?></div>
            <div class="indexGrid-r2"><?=$iGCell[$random10[1]];?></div>
            <div class="indexGrid-r3"><?=$iGCell[$random10[2]];?></div>
            <div class="indexGrid-r4"><?=$iGCell[$random10[3]];?></div>
            <div class="indexGrid-r5"><?=$iGCell[$random10[4]];?></div>
        </div>
        <div id="indexGrid-c2">
            <div class="indexGrid-r1"><?=$iGCell[$random10[5]];?></div>
            <div class="indexGrid-r2"><?=$iGCell[$random10[6]];?></div>
            <div class="indexGrid-r3"><?=$iGCell[$random10[7]];?></div>
            <div class="indexGrid-r4"><?=$iGCell[$random10[8]];?></div>
            <div class="indexGrid-r5"><?=$iGCell[$random10[9]];?></div>
        </div>
    </div></div></div></div><br>
    <center>
    <a href="http://www.hackmygame.com"><img src="http://www.egamescores.com/images/banners/HackMyGameNewLogo.jpg"></a></center><br>
    <center><a href="http://www.imagesticky.com"><img src="http://www.egamescores.com/images/banners/ImageSticky.jpg"></a></center><br>
    <center><a href="http://www.jjarcade.com"><img src="http://www.myspacetoolbelt.com/_theme/images/JJArcade.jpg"></a></center><br>
    <div id="indexTrain" class="w11"><div class="w12"><div class="w13"><div class="w14">
    <div class="simpleTrain">
    <? include($urlBase.'/Train/_module.php');?>
    </div>
    </div></div></div></div>

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: No more Random

    well, for one, you didn't even include the part that generates the random numbers and colors, so that would have been the best place in the first place to do this in.. however, you can always just change this:
    PHP Code:
            <div class="indexGrid-r1"><?=$iGCell[0];?></div>
            <div class="indexGrid-r2"><?=$iGCell[1];?></div>
            <div class="indexGrid-r3"><?=$iGCell[2];?></div>
            <div class="indexGrid-r4"><?=$iGCell[3];?></div>
            <div class="indexGrid-r5"><?=$iGCell[4];?></div>
        </div>
        <div id="indexGrid-c2">
            <div class="indexGrid-r1"><?=$iGCell[5];?></div>
            <div class="indexGrid-r2"><?=$iGCell[6];?></div>
            <div class="indexGrid-r3"><?=$iGCell[7];?></div>
            <div class="indexGrid-r4"><?=$iGCell[8];?></div>
            <div class="indexGrid-r5"><?=$iGCell[9];?></div>
    Like Archer? Check out some Sterling Archer quotes.

  3. #3

    Thread Starter
    Frenzied Member joefox's Avatar
    Join Date
    Oct 2004
    Posts
    1,318

    Re: No more Random

    OMG it worked...thanks again kows

Posting Permissions

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



Click Here to Expand Forum to Full Width