Results 1 to 5 of 5

Thread: What is Content Rotator Component in ASP?

  1. #1
    Join Date
    Jul 2006
    Posts
    182

    What is Content Rotator Component in ASP?

    Hi friends,
    I have written many scripts in ASP, but I don't have enough knowledge about the components.!! I have been told to use the content rotator in my assignment. So I thought that posting here my query would help me..!! Please tell me what is Content Rotator Component in ASP? It would be very appreciable if someone provide me an example of that.!!
    "Yea though I walk through the valley of the shadow of death... I will fear no evil." -Psalms 23

    K8N Diamond Plus (BIOS v1.2)
    AMD Athlon 64 X2 4400+
    Antec TruControl 550W
    NVidia GeForce 7900GT (NGO v1.8466 BETA)
    OCZ Platinum 2x1GB (2-3-2-5)
    SATA: WD740
    PATA: 2xWD2500, WD1200, NEC DVD/RW

  2. #2
    Join Date
    Aug 2006
    Posts
    227

    Re: What is Content Rotator Component in ASP?

    The Content Rotator component creates a ContentRotator object that automatically rotates HTML content strings on a Web page. You can display any type of content that HTML can represent: text, images, colors, or hyperlinks which stores in the content strings. The ASP Content Rotator component creates a ContentRotator object that displays a different content string each time a visitor enters or refreshes a page. A text file, called the Content Schedule File, includes the information about the content strings.
    I do to dead flowers what people at morgues do to dead people. Suck all the moisture out, dip them in plastic, paint them up pretty and put them in a nice frame.

  3. #3
    Join Date
    Mar 2008
    Posts
    349

    Re: What is Content Rotator Component in ASP?

    The content strings can contain HTML tags so you can display any type of content that HTML can represent: text, images, colors, or hyperlinks. The syntax for same is as follows :
    Code:
    <%
    Set comro=Server.CreateObject("MSWC.ContentRotator")
    %>
    Because the ContentRotator object uses a random generator to select which of the weighted content strings is displayed, a string may be repeated.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Re: Example of Content Rotator Component in ASP

    The following example displays a different content each time a visitor views the Web page. So check the following coding :
    Code:
    %% #3
    <h2>Good Evening!!</h2>
    
    %% #3
    <img src="smiley12.gif">
    
    %% #4
    <a href="http://www.techarena.in">Visit TechArena.in</a>

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    Re: What is Content Rotator Component in ASP?

    After creating a file as mentioned by the 'opaper', you will have to create an ASP file, and insert the following code :
    HTML Code:
    <html>
    <body>
    <%
    set comro=server.createobject("MSWC.ContentRotator")
    response.write(comro.ChooseContent("text/textads.txt"))
    %>
    </body>
    </html>

Similar Threads

  1. Content blocker blocks content on certain sites with Opera
    By GiveNTake in forum Technology & Internet
    Replies: 5
    Last Post: 21-06-2011, 07:30 AM
  2. What is a EOL Component
    By Abbie in forum Monitor & Video Cards
    Replies: 6
    Last Post: 12-03-2010, 11:09 AM
  3. Logon Screen Rotator 2.1.0.2 issues under Windows 7
    By Xavier1234 in forum Operating Systems
    Replies: 5
    Last Post: 13-02-2010, 02:03 AM
  4. Replies: 5
    Last Post: 12-01-2010, 10:47 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,275,479.31181 seconds with 17 queries