Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,659 members, 7,955,379 topics. Date: Sunday, 22 September 2024 at 01:21 AM |
Nairaland Forum / Science/Technology / Webmasters / Random Advert Code For Nairaland. (1378 Views)
$0.99 .com Promo Code For Godaddy / Wordpress Class ONLINE For NAIRALAND / The Html Code For The Naira ₦ Is (2) (3) (4)
Random Advert Code For Nairaland. by parlyb(m): 9:20am On Apr 08, 2015 |
Goodmorning Webmasters on nairaland. Please Somebody should help me with the code for random banner advert changing, just as here in nairaland where adverts change on their own each time a page is reloaded. Thanks.... |
Re: Random Advert Code For Nairaland. by adewasco2k(m): 9:47am On Apr 08, 2015 |
parlyb: you might have to code that yourself if you can or search online for such....most guys will not waste their "coding time" on that without you paying |
Re: Random Advert Code For Nairaland. by Grime: 6:44pm On Apr 08, 2015 |
parlyb: If you will be adding and removing the banner links manually then it can easily be done with javascript. But if you want to allow other people upload banners and set it to expire after a peroid of time (like NL), then that is something entirely complicated. |
Re: Random Advert Code For Nairaland. by pelij18(m): 7:18pm On Apr 08, 2015 |
parlyb:Maybe i could help, can i know the platform you're coding in?. |
Re: Random Advert Code For Nairaland. by dwebdesign(m): 10:23pm On Apr 08, 2015 |
I have the script, Contact: Mobile: 08133884165 WhatsApp: 08133884165 BBM: 2BB63350 http://www.1st-websitedesign.com Am a website developer skilled in languages as: HTML/HTML5, CSS/CSS3, PHP, MYSQL, Javascript/Jquery,JqueryMobile,Bootstrap Ajax. phpquard CMS (Wordpress, Joomla, Opencart, Magento, Whmcs, Drupal and Pulse Cms, blogger ). |
Re: Random Advert Code For Nairaland. by parlyb(m): 12:04pm On Apr 14, 2015 |
I wanna Fix it On A wordpress, And i will be removing it manually, i have tried using this 1 below but not working. <script language="JavaScript"> images = new Array(3); images[0] = "<a href = 'URL OF ADVERTISER' rel='nofollow' ><img src='URL OF BANNER’S IMAGE-1' border='0' height='60px' width='468px' alt='AD DESCRIPTION'></a>"; images[1] = "<a href = 'URL OF ADVERTISER' rel='nofollow' ><img src='URL OF BANNER’S IMAGE-2' border='0' height='60px' width='468px' alt='AD DESCRIPTION'></a>"; images[2] = "<a href = 'URL OF ADVERTISER' rel='nofollow' ><img src='URL OF BANNER’S IMAGE-3' border='0' height='60px' width='468px' alt='AD DESCRIPTION'></a>"; index = Math.floor(Math.random() * images.length);]); </script> |
Re: Random Advert Code For Nairaland. by parlyb(m): 12:09pm On Apr 14, 2015 |
pelij18:wordpress |
Re: Random Advert Code For Nairaland. by parlyb(m): 12:11pm On Apr 14, 2015 |
Grime:yea. I 'll be removing and adding the banner links manually. But please help me with the javascript. |
Re: Random Advert Code For Nairaland. by pelij18(m): 12:58pm On Apr 14, 2015 |
parlyb:javascript can do it. |
Re: Random Advert Code For Nairaland. by Grime: 11:28pm On Apr 15, 2015 |
parlyb: parlyb: Sorry for the late reply. Too many errors in your code. You didn't declare the variables you were using and you didn't even output the final result. I have corrected the code for you. <script language="JavaScript"> var images = new Array(3); var index images[0] = "<a href = 'URL OF ADVERTISER' rel='nofollow' ><img src='URL OF BANNER’S IMAGE-1' border='0' height='60px' width='468px' alt='AD DESCRIPTION'></a>"; images[1] = "<a href = 'URL OF ADVERTISER' rel='nofollow' ><img src='URL OF BANNER’S IMAGE-2' border='0' height='60px' width='468px' alt='AD DESCRIPTION'></a>"; images[2] = "<a href = 'URL OF ADVERTISER' rel='nofollow' ><img src='URL OF BANNER’S IMAGE-3' border='0' height='60px' width='468px' alt='AD DESCRIPTION'></a>"; index = Math.floor(Math.random() * images.length); document.write(images[index]) </script> 1 Like |
Re: Random Advert Code For Nairaland. by parlyb(m): 8:08am On May 04, 2015 |
Grime:thanks broe |
Re: Random Advert Code For Nairaland. by Booyakasha(f): 9:57am On May 04, 2015 |
Grime: We use it at www.gdevit.com |
Re: Random Advert Code For Nairaland. by femzysticks(m): 8:33pm On May 04, 2015 |
Contact me let me give you some codes to try out Don't want to start posting plenty ish here Femzy14@gmail.com |
Re: Random Advert Code For Nairaland. by femzysticks(m): 8:33pm On May 04, 2015 |
Contact me let me give you some codes to try out Don't want to start posting plenty ish here Femzy14@gmail.com |
Re: Random Advert Code For Nairaland. by shorxynla(m): 10:38pm On May 04, 2015 |
Why disturbing yourself when you can use adrotate plugin for wordpress. |
(1) (Reply)
Pls Wordpress Help / Looking For A Web Designer Or Developer / Can I Use One Bank Details To Withdraw From Two Different Adsense Account
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 34 |