Guest senyoupro Posted January 8, 2006 Share Posted January 8, 2006 I had been looking for a banner code that would work and I couldnt see to come across an answer on here so I tried a few codes out and finally got a good one that works great. Goto /StyleTemplates/Global/index.tpl Copy the following code, -if youd like it to be at the top of the page above the cart place the code directly after <body> -if youd like it at the bottom of the page copy the code directly after </body> -Use <br> (as many needed, I used 2) to space it from the copyright text. Check mine to see the spacing. This will add the rotation of banners to the bottom of your page. For preview goto the bottom of my store.. www.senyoupro.com/store <script LANGUAGE="JavaScript"> <!-- Begin var how_many_ads = 3; var now = new Date() var sec = now.getSeconds() var ad = sec % how_many_ads; ad +=1; if (ad==1) { url="http://www.1and1.com/?k_id=8923729"; alt="http://www.1and1.com/?k_id=8923729"; banner="http://1and1.org/banners/counting2.gif"; width="468"; height="60"; } if (ad==2) { url="http://www.senyoupro.com"; alt="SenyouPro.com"; banner="http://www.senyoupro.com/images/SenyouPro_logo.gif"; width="468"; height="60"; } if (ad==3) { url="http://www.goto.com"; alt="goto.com"; banner="http://imageserv.imgis.com/images/Ad13700St1Sz1Sq1_Ban1.gif"; width="468"; height="60"; } document.write('<center>'); document.write('<a href=\"' + url + '\" target=\"_top\">'); document.write('<img src=\"' + banner + '\" width=') document.write(width + ' height=' + height + ' '); document.write('alt=\"' + alt + '\" border=0><br>'); document.write('<small>' + txt + '</small></a>'); document.write('</center>'); // End --> </SCRIPT> Quote Link to comment Share on other sites More sharing options...
Guest vrakas Posted January 8, 2006 Share Posted January 8, 2006 Nice job I also noticed you changed the copyright font colour, good. Now you moved all the boxes to the left you have to make the main frame to fit the page ;) Quote Link to comment Share on other sites More sharing options...
Guest senyoupro Posted January 8, 2006 Share Posted January 8, 2006 Now you moved all the boxes to the left you have to make the main frame to fit the page Yea, How should I go about that? Quote Link to comment Share on other sites More sharing options...
Guest Posted January 8, 2006 Share Posted January 8, 2006 Check in the stylesheets folder of your skin called layout.css you should be able top adjust the width thru that. Quote Link to comment Share on other sites More sharing options...
Guest senyoupro Posted January 8, 2006 Share Posted January 8, 2006 Sweet, Ill give it a try. Quote Link to comment Share on other sites More sharing options...
Guest senyoupro Posted January 8, 2006 Share Posted January 8, 2006 Now, I just need to find a way to adjust the category folder alignment. some are off like the exterior section. Quote Link to comment Share on other sites More sharing options...
Guest benlogan Posted January 9, 2006 Share Posted January 9, 2006 I have done your mod, and it works great except the "Powered By" is linked to my affiliate address. How do i fix that. Also how can i stop the blue outline off hyperlinked items? Quote Link to comment Share on other sites More sharing options...
Guest senyoupro Posted January 9, 2006 Share Posted January 9, 2006 I have done your mod, and it works great except the "Powered By" is linked to my affiliate address. How do i fix that. Also how can i stop the blue outline off hyperlinked items? Thats odd. I didnt even notice that it did that until you mentioned something and I looked at mine. I fixed the problem though, to have it at the bottom of the page, place it after </body> Use <br> (as many needed, I used 2) to space it from the copyright text. Check mine to see the spacing. Quote Link to comment Share on other sites More sharing options...
markscarts Posted January 10, 2006 Share Posted January 10, 2006 how can i stop the blue outline off hyperlinked items I usually go all out and create a style in the stylesheet that says a img { border: 0px; } or add a class to the link, say, class="imglink" or class="noborder" and in the stylesheet go a.imglink { border: 0px; } That should cover all the bases in shorthand. Or you could write it all out . . . a.imglink:link img, a.imglink:active img, a.imglink:visited img, a.imglink:hover img { border: 0px; } A little pedantic, but anyway that's the way I usually do it :) Quote Link to comment Share on other sites More sharing options...
Guest Posted January 10, 2006 Share Posted January 10, 2006 How did you insert the cityscape background at the bottom of your page? Bill Quote Link to comment Share on other sites More sharing options...
markscarts Posted January 10, 2006 Share Posted January 10, 2006 @ Bill, that would be a background-image on the body tag, like I used on my first CubeCartâ„¢ store Here's one way of coding something like that: body { background:black url(../styleImages/backgrounds/pageBg.gif) no-repeat fixed; } Make your skyline named pageBg.gif, or change the image name in code above. You can also set background-position: bottom; if you want to align it with the bottom of the screen, centered. Quote Link to comment Share on other sites More sharing options...
Guest Posted January 15, 2006 Share Posted January 15, 2006 nebody actually worked out how to make the banners rotate? as the script donnt seem to work Quote Link to comment Share on other sites More sharing options...
Guest senyoupro Posted January 15, 2006 Share Posted January 15, 2006 nebody actually worked out how to make the banners rotate? as the script donnt seem to work works fine on my page? I think if you had more than just two banners that it would show them more randomly but since I only have 2 it shows one more and less randomly. Quote Link to comment Share on other sites More sharing options...
Guest blacktaisaltco Posted January 16, 2006 Share Posted January 16, 2006 hello. can you tell me the idots way to do this? i want to change my website around www.blacktaisaltco.com my web guy quit and I dont know how to do it!! I am trying to learn until i get someone. [email protected] i want to add a background to the home page, a picture if possible, then change it around so that I have extra space to write some things on the homepage, because now, it looks as iff it doesnt go to the end of the page. Gerald Katen.... If you can help, I will give my exotic salts and scrubs... Quote Link to comment Share on other sites More sharing options...
Guest benlogan Posted January 16, 2006 Share Posted January 16, 2006 Hi, I am able to do this for you. My email is [email protected]. Quote Link to comment Share on other sites More sharing options...
Guest Posted January 16, 2006 Share Posted January 16, 2006 lol ben urs doesnt do nething? All its showing is a banner that is animated. Its not rotating 2 images or nething. Quote Link to comment Share on other sites More sharing options...
Guest benlogan Posted January 16, 2006 Share Posted January 16, 2006 I have 3 banners set-up in mine, they do occasional rotate but it seems that it favours one more than the others :P Quote Link to comment Share on other sites More sharing options...
Guest rosdi Posted February 1, 2006 Share Posted February 1, 2006 How did you insert the cityscape background at the bottom of your page? Bill Is it /skin/skin template/stylesheets/layout.css? Quote Link to comment Share on other sites More sharing options...
markscarts Posted February 1, 2006 Share Posted February 1, 2006 yes, layout.css Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.