HTML - Code To Show Banner On A Given Day Of The Month
I am using the following javascript to show a different banner for each day of the week. Is it possible to alter this to show for each day in a month? May 1, May 2 etc..
Code: <script type="text/javascript"><!-- var imlocation = "images/"; function ImageArray (n) { this.length = n; for (var i =1; i <= n; i++) { this[i] = ' ' } } image = new ImageArray(7); image[0] = 'sunday.gif'; image[1] = 'monday.gif'; image[2] = 'tuesday.gif'; image[3] = 'wednesday.gif'; image[4] = 'thursday.gif'; image[5] = 'friday.gif'; image[6] = 'saturday.gif'; var currentdate = new Date(); var imagenumber = currentdate.getDay(); document.write('<img src="' + imlocation + image[imagenumber] + '">'); //--></script> Thanks for any help. Similar TutorialsIs this the right place to post this? I have some banners but no code to copy and paste that displays them on websites so how to do that to make my banners display on websites? Image source something I think? Thanks i would like to put the code for a banner ad on my site, so that people can copy the code and place the banner on their site. of course, every time i put the code in it actually places the banner instead of the code. is there a tag that basically says, "this is not html"? Ok I've run into this a couple different ways. I need to get the code for peoples banners so I can advertise them. But sometimes I cant get the code & its just the banner that is showing up? If I go to properties, it doesnt give me the right code to then reprint the banner on my site? Say for instance here... http://www.supercult.com/site2/banne...urbanners.html There is all of those banners for others to take & post on their sites, yet I dont know how to get the code for any of them to do so? Hi I wasn't sure whether this post belongs in the HTML or Graphics forum but I think it is HTML code I need so here goes; I have a problem regarding the coding that will place an animated banner on my website. Currently, I have a jpg banner across the top of all pages and the code that places it there, held in my z-header.shtml file, is: <tr> <td class="headerbg" colspan="3"> <!--the header is linked to the homepage. You can remove the link tag if you dont want this. Dont forget to take out the </a> tag at the end, as well--> <a href="index.html"></a> <div align="center"> <img style="WIDTH: 956px; HEIGHT: 110px" title="return to homepage" border="0" alt="return to homepage" src="image-files/Garden-Design-Pictures-Banner.jpg" width="966" height="119"> </div> </td> </tr> Now, somebody has created a .swf file for me and it is now up to me to integrate it into my site. The animated banner can be viewed he http://www.calamitycreations.co.uk/SteveBarker.html - I intend using the lower NoLoop file. I tried copying the code from that page and stripping it down but it didn't help me. I've only ever written simple html so I really don't know what to do. Please help! Thanks Steve http://www.garden-design-pictures.com I have a problem that is driving me crazy. I am not an expert by any means with html, but I can usually figure these things out, and this one has stumped me. For my site, I have an .png image that is an outline for what I want my advertisement to be located within. Below is the banner: location: Code: http://www.topsocomsites.com/skins/darktheme/ad-outline.png How do I use HTML to insert my javascript ad code that displays my banners to be located in the empty space of the above outline? Thanks in advance for your help! does anyone else have this problem? at work, we have Dreamweave MX Student edition. The tip/hint for coding seems to be enable, but when i type in css, there are no code hint. any help? NOTE: running on Mac OS X Hey everyone, I am attaching a picture of something happening to a friends website. Is there any way to fix this? FYI: seems to show fine in yahoo, bing, or any other search engine results page. Thanks Is it possobel to show current month in my drop down . Thanks My site is: h1.ripway.com/shsepac How can I make the banner so there is no space at the top and at the bottom? Hi everybody I am a new member. I'm not to experienced with css style sheets or html and have a small problem. I have attached code. My website is www.intelligentstudentfinance.com I want to move the banner at the bottom of the financial aid page to the extreme right but not sure what the code is. I have attached the code in txt format and commented the banner I want want moving to the right. Look forward to your replies Thanks Hey, i have a problem with my banner(logo) I want the banner to be at the top, not underneath it. I want it to be centered and at the top, stuck to the border or something, like at http://habblogg.net, here is my site http://habbxtra.net Please help anyone I'm trying to set the following banner up on my site but when I paste the code at the end of the page the banner keeps appearing at the top of the page. Can anybody explain why? <div style="z-index: 110; position: absolute; width: 468px; font-family: arial,sans-serif; background: url("http://outils.acf-webmaster.net/bann...2482.gif") repeat scroll 0% 0% transparent; height: 60px; color: rgb(255, 255, 255); font-size: 12px; top: 26px; left: 34px;"> <div style="position: absolute; line-height: 110%; width: 200px; top: 1px; left: 55px;"> <font xmlns="http://www.w3.org/1999/xhtml"><font xmlns="http://www.w3.org/1999/xhtml"> <font size="1px;"> <strong> <font face="Verdana"> 280 different <a style="color: rgb(255, 255, 2); font-size: 10px;" href="http://www.casinoriva.com/en/" target="_blank">online casino</a> games await for you. </font> </strong> </font> </font></font></div> </div> okay probably a simple feat for some of you, but if I wanted to make a nbanner that flitted (rotated) through several images, say four location shots, how does one do this? I do have in my employ: Adobe Photoshop Adobe Dreamweaver and my favorite coding program : Notepad Do I make an animation in Photoshop and save it as a ,gif and use that in Dreamweaver and add the link there? Would that work? hrm. *pulls her skirt down a bit* I think my noob is showing I'm am looking for the easiest way to create an ad banner rotator for my site. For example, I want to show each ad for like 5 secs and I wrote my site in XHTML. Any ideas or suggestions? Im a newbie and all I want to do is put a color border aorund this image say the color blue, please help. </head> <body> <a href="http://www.bigcustomernetwork.com" target="_blank"><img src="http://i529.photobucket.com/albums/dd339/jfaul4820/BCNTopBanner.jpg" border="1" alt="BCN Top Banner"></a></a> </body> </html> I'm creating a banner for the top of my web site whose layout looks roughly like this: http://farm4.static.flickr.com/3098/...d89112.jpg?v=0 I created a div and put a table in it to make these divisions, but there's one problem. There is space between the cells of the table and the div. Padding and margins are set to 0 all around, as well as the table's cell padding. Here's the relevant html: Code: <div class="banner"> <table cellpadding="0"> <tr> <td><img src="assets/images/IMG_0632f.jpg" width="375px" /></td> <td> <table border="1" width="375px"> <tr> <td colspan="3" height="50px"> THE J-SLICE</td> </tr> <tr> <td><img width="75px" height="50px"/></td> <td><img width="75px" height="50px"/></td> <td><img width="75px" height="50px"/></td> </tr> </table> </td> </tr> </table> </div> and the CSS for the div: Code: div.banner { padding: 0px; margin: 0px; background-color: black; border: 1px solid red; color: red; } I'd really like to get the edges of the table right up against the div, and if possible, get the two tds of the main tr directly adjacent as well. Thanks. Hi, im a bit of a novice who built a website and would like to have a rotating banner image at the top of the page. Is this an easy thing to do? Thanks, Tobyone. hi, I have just started building webpages by myself. this might be a common problem for all beginners. the problem is i want my banner images to span the total width of the web page (touch boundaries of the browser window), on all kinds of monitors(monitors with different widths). Is this possible? how can i do this? I am trying to get my banner to work and I have run out of options. I have 2 examples here the top one is the one I am having problems with and the bottom one is one that works and is the one I used as an example to get the code right. or click on this banner.<P> <a href='http://images.startxchange.com/o/onelady-banner1.png '><br /> <img border='0' src='http://www.startxchange.com/?referer=onelady' /></a> or click on this banner.<P> <a href='http://webcentresurf.com/?20191'><br /> <img border='0' src='http://webcentresurf.com/banners/surf_a1.gif' /></a> I am very new at this and would appreciate any help getting my banner to work correctly. Thanks in advance, Leah i have made a one page site for a mate, but what ever i try i can not get the banner to show up, can anyone help me and tell me what i have done wrong please, heres the link to the site. http://a1aerials.info/ Thanks stephen |