xml banner rotator

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 years ago
Can anyone help me where i have to place the xml banner rotator source, if i want to show it in the home page..
14 years ago
\NopCommerceStore\Default.aspx
14 years ago
Hello Andrei

i'm having the following code in default.aspx


<%@ Page Language="C#" MasterPageFile="~/MasterPages/TwoColumn.master" AutoEventWireup="true"
    Inherits="NopSolutions.NopCommerce.Web.Default" CodeBehind="Default.aspx.cs" %>

<%@ Register TagPrefix="nopCommerce" TagName="TodaysPoll" Src="~/Modules/TodaysPoll.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="NewsList" Src="~/Modules/NewsList.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="HomePageCategories" Src="~/Modules/HomePageCategories.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="HomePageProducts" Src="~/Modules/HomePageProducts.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="BestSellers" Src="~/Modules/BestSellers.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="Topic" Src="~/Modules/Topic.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="Server">
    <nopCommerce:Topic ID="topicHomePageText" runat="server" TopicName="HomePageText"
        OverrideSEO="false"></nopCommerce:Topic>
    <div class="clear">
    </div>
    <nopCommerce:HomePageCategories ID="ctrlHomePageCategories" runat="server" />
    <div class="clear">
    </div>
    <nopCommerce:HomePageProducts ID="ctrlHomePageProducts" runat="server" />
    <div class="clear">
    </div>
    <nopCommerce:BestSellers ID="ctrlBestSellers" runat="server" />
    <div class="clear">
    </div>
    <nopCommerce:NewsList ID="ctrlNewsList" runat="server" />
    <div class="clear">
    </div>
    <nopCommerce:TodaysPoll ID="ctrlTodaysPoll" runat="server" />
</asp:Content>

please tell me if i want to place a image rotator where i will paste the code.

i want to place below image rotator code.

<script language="JavaScript">
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
<!--
i=0;
var ads = new Object();
var header='<CENTER><TABLE CELLPADDING=0 CELLSPACING=1 BORDER=0><TR><TD '
+ 'ALIGN=CENTER><FONT SIZE=2 FACE=Arial>SimplytheBest DHTML Scripts & Javascripts is sponsored by: ';
ads[i++] = header
+'<A HREF="http://planmagic.com" TARGET="_top">PlanMagic Corporation</A>'
+'</TD><TR></TR><TD><A HREF="http://planmagic.com" TARGET'
+'="_top"><CENTER><IMG SRC="banners/banner_1.gif" width="468" height="60" BORDER=0 ALT="PlanMagic Marketing"></CENTER>'
+'</A></TD></TR></TABLE></CENTER>';
ads[i++] = header
+'<A HREF="http://planmagic.com" TARGET="_top">PlanMagic Corporation</A>'
+'</TD><TR></TR><TD><A HREF="http://planmagic.com/business_plan/restaurant_business_plan.html" TARGET'
+'="_top"><CENTER><IMG SRC="banners/banner_2.gif" width="468" height="60" BORDER=0 ALT="PlanMagic Restaurant"></CENTER>'
+'</A></TD></TR></TABLE></CENTER>';
ads.length = i;
dat = new Date();
dat = (dat.getTime()+"").charAt(8);
if (dat.length == 1)
ad_num = dat%ads.length;
else
ad_num = 0;
document.write(ads[ad_num]);
// -->
</script>
14 years ago
where on the page do you want it to appear?

<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="Server">

if you want it at the top of the page, put it here

    <nopCommerce:Topic ID="topicHomePageText" runat="server" TopicName="HomePageText"
        OverrideSEO="false"></nopCommerce:Topic>
    <div class="clear">
    </div>
    <nopCommerce:HomePageCategories ID="ctrlHomePageCategories" runat="server" />
    <div class="clear">
    </div>
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.