Interested in content changing when people come to my website, mainly promotional items for sale like 5 chairs for sale
and a different one to come as a random ID is called. I can not find anything on it.
maybe a small html plaeg to plug in.
Any Ideas Anyone?
Jonny
![]() |
0 |
![]() |
you can refer the following link:
http://www.aspdotnetcodes.com/Asp.Net_AdRotator_Database.aspx
![]() |
0 |
![]() |
http://www.wwwcoder.com/main/parentid/261/site/5868/68/default.aspx
first hit from this search:
http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=ace&q=adrotator+asp.net&btnG=Search
and another:
http://www.aspnettutorials.com/tutorials/controls/adrotatorcontrol-csharp-aspnet.aspx
![]() |
0 |
![]() |
I am trying to ad text into the adrotator is the question.
I know how to display images, thanks for pointing that way for me, but I am wanting to know if a way to display text instead of images with alt text.
Any ideas let me knoy
J~
![]() |
0 |
![]() |
101jonny:
I am trying to ad text into the adrotator is the question.
I know how to display images, thanks for pointing that way for me, but I am wanting to know if a way to display text instead of images with alt text.
Hi 101jonny,
After test again and again, it is impossible with the standard adrotator.
But you can write one by JavaSctipt, please refer this link,
http://www.brettb.com/js_banner_ad_rotator.asp
Hong-Gang Chen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
![]() |
0 |
![]() |
I do not think that will work, I apreciate the Idea though
How would I create a html frame that would change based on a random call?
Is this possible?
Please help I am a newb butI know this stuff has unlimited posabilities!
Hong-Gang Chen Thank you much for you help I hope you can answer this one last question
Good Day to you
~Jonny
![]() |
0 |
![]() |
Yes, this is a way!
And see the code,
<%@ Page Language="C#" AutoEventWireup="true" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>AD</title> <script language="javascript" type="text/javascript"> function getRandomURL(){ var URLs=new Array(3); URLs[0]="a.htm"; URLs[1]="b.htm"; URLs[2]="c.htm"; var index = Math.random(); index = Math.round(index*2); document.getElementById("iframeURLs").src = URLs[index]; } </script> </head> <body onload="getRandomURL()"> <form id="form1" runat="server"> <div> <iframe id="iframeURLs" scrolling="no" frameborder="0" width="800px" height="200px"> </iframe> </div> </form> </body> </html>
Hong-Gang Chen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
![]() |
0 |
![]() |
This is exectly what I am looking for.
Is there a way to stuff taht into a master page to be able to plug-ing were ver the master page is.
Jonny
![]() |
0 |
![]() |
101jonny:
This is exectly what I am looking for.
Is there a way to stuff taht into a master page to be able to plug-ing were ver the master page is.
Jonny
Hi Jonny,
Yes, I think so, and you can do it yourself.
![]()
Hong-Gang Chen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
![]() |
0 |
![]() |
when implementin your code I do not get anything to display what is the deal
It does insert a Iframe but nothing else?
please explain.
~Jonny
![]() |
0 |
![]() |
Hi Jonny,
Please create the following file in the root of your website,
URLs[0]="a.htm";
URLs[1]="b.htm";
URLs[2]="c.htm";
Hong-Gang Chen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
![]() |
0 |
![]() |
your code does definetlelry works!!!
But one last Q? before we part . PLEASE!!!
Is it possible to plug that into a label, the reason being is that the text is not actually on the page.
I apreciate the help you have provided me.
Jonny
![]() |
0 |
![]() |
101jonny:
Is it possible to plug that into a label, the reason being is that the text is not actually on the page.Hi Jonny,
What do you mean? Can you give me more information?
Hong-Gang Chen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
![]() |
0 |
![]() |
It is the exect same thing you created just can you do that same thing using a label instead of the iframe
can you get the A.htm, B.htm, or C.htm to be displayed on the web page as a label to view the A.htm page
I hope that is descriptive enough.
~Jonny
![]() |
0 |
![]() |
Please test my code, and create a.htm, b.htm and c.htm, and just put a,b,c to each page, and you will get what you want.
Hong-Gang Chen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
![]() |
0 |
![]() |
The code does not work using a label instead of the IFRAME?
are you sure.
You know I am talking about a label right?
~jonny
![]() |
0 |
![]() |
Still havnt figured it out....
Is this possible?
![]() |
0 |
![]() |