want to take this redirect script and modify it so that it rotates a banner image instead of sending the user to another page. The script works so that if the window is out of focus for 10 seconds, it redirects. The images are defined in an external style sheet so I guess I'll have to move that into the document. Also, I want it to be able to work more than once with multiple images, like if the user opens a new tab, comes back, goes to a different tab, the image should change twice. Here's the script:
<script type="text/javascript"> var xScroll, yScroll, timerPoll, timerRedirect, timerClock; function initRedirect(){
I'm in need of a good, reliable ad banner rotation setup where I can add/delete banners (and their links) remotely because I'm going to use it on over 100 web pages.
My question is: is java script the best way to go? If so, can anyone provide me with a link to a good script I can try?
I don't need to track how many clicks, so a simple script would work fine.
Basically I created a script which changes image banner on site depending on which day it is, and what period of time it is.
Script goes like this:
HTML part
<img id="banner" /> Javascript code var nowHr=new Date().getHours(); var nowMin = new Date().getMinutes();
[code]...
Now, WHAT I NEED NOW is instead o using images (1.jpg, 2.jpg...) I want to use Flash (1.swf, 2.swf...).So is it possible to modify this script and make it work with Flash?
I currently manage a website that has a simple banner rotation javascript that randomly rotates banner images and the associated link every few seconds. I have been asked to replace it with a script that will be sequential in rotation and have a couple small button options just below the banner to move forward or backward through the selection.
I figured instead of reinventing the wheel someone surely has a simple a banner rotator with forward/back options, but darn if I can find one. There are countless scripts out there, but I can�t find one where the user can select the next banner before its allotted time. It would be simple enough in flash, but it was requested I stay with java script.
Anyone have any leads for a very basic banner rotation script that incorporates the forward/back selection option?
I am using the jquerry cycle to create a rotation banner with a caption/title within a CMS everything is working properly. the problem is that on the next step i need to make the caption color change according to the captionis there a way to control that? this is my code so far
I need to stretch my banner Image at the top of the page to the whole of the page. The development computer on which I was working for this site displayed it correctly. Today when I opened the code in another compter the top banner image didn't display itself for the whole of the page. It just contracted to the left side. I am wondering how do do it. Well I used background-image:100% but that didn't work(CSS3 compatibility issues). Any tips to stretch this top banner to the whole of the page in every computer.
Our company own a lot of domains and want to put a short page of copy on each address along with keywords before redirecting the user to our main site. I have been able to get the page to load the main site after the desired time using this code in the head...
That works perfectly, I am now trying to display a countdown timer from 40 seconds down to 0, and on 0 redirect the user. Saying something like "You will be redirected in XX seconds". Is there anyway of doing this? I've been searching google for the answers with no luck and can only seem to find timers that countdown to a set date.
I have a banner that has image navigation on the lower right. The navigation links are images which, when clicked, change the banner without reloading the page. The actual switching of the banner is working when each image is clicked.
However, my problem is this:
The page itself is long and must be vertically-scrolled to see the entire content. Because of the scrolling, the banner could appear anywhere vertically on the page. And whenever I click the banner navigation hrefs, the page "jumps" so that the banner is at the top. The page should really stay in the fixed position.
I'm not sure how to set it up so that no matter where the banner section is on the scrolled page, that the page stays in the same position when the navigation is clicked.
My href's in that navigation are set up as :
Do I need something in my script so that the page won't jump? Or am I missing something in the HTML?
Code: <style> body { /*Remove below line to make bgimage NOT fixed*/ background-color:black; background-attachment:fixed; background-repeat: no-repeat; [Code]...
when i run it, i have to wait the 9000 timer to c the first image, and i need the page to start with an image and then start the rotation, i have assigned background-image by css, and tried also to use document.body.background, but when i do this the rotator doesnt work.
i am using ajax to change the banner background while pressing on refresh Note:it must be a background image because i will display data from database. [URL]...
my problem is: when i press refresh button in Firefox browser it changes the background and on pressing refresh again the background will change but in internet explorer 8.0 it changes the background only for the first time and on pressing refresh again the background will not change.
how i can fix this problem ?? i want the user to press refresh at any time and the background will change.not only for the first time at the same time it must be a background image because i will display text from database.
I'd want that: at the first user's click on the #register div, the div #registerForm become visible, it should remains visible also when the user click the submit button within and it should disappear if the user click a second time on the #register.I partially solved my problems with this:
Anyone know if its possible to put individual times on how long the image is displayed? I am trying to get the blank.jpg's to display for 1 second, while the others stay at 5.
<SCRIPT LANGUAGE="JavaScript"> var imageWidth = 385; var imageHeight = 407;
Im looking to setup a project for my uni assignment. its going to be a time radio site and i'm looking to create a page that has some javascript to carry out an image rotation.I want to have:- three images side by side- all images to rotate from a folder containing 100+ pictures- they all have different file names and extensions but i can change them if need be i want the images to rotate automatically without the page having to be reloaded or mouseovers or anything- i would like them to rotate on different time frames i.e. first picture 3 sec rotation, second picture 5 seconds, third image 7 seconds.... something like thatscanning the web but come up short. cant use php or anything its got to be a html page using javascript
Sometimes I wish I had started with javascript instead of php... Really need your help fellow Sitepointers! I stumbled over a script that I am dying to use for my new design, but I need to do two small tweaks to it that my JQuery skills just aren't up to.Demo of the script is here:http://www.seoarticlewritinglab.com/lofslidernews-1/As you can see, it automatically scrolls every X seconds to the right until it gets to the end. Afterwards, it does a huge fastforward back to the first item. What I want it to do, is to automatically scroll to the right every X seconds, but when it gets to the end, simply change scrolling direction, and scroll backwards one item at a time every X seconds... And when it gets to the first item, switch the direction back to normal forward scrolling.Can someone point me in the right direction and help educate me a little bit in javascript? This is probably really easy for you experts, but I am having a really tough time.
my dilemma at the moment is that I have produced a site where the client would like the logo colour/image to change on refresh which I have achieved by scouring the net for codes and altering them. Now, the client wants the shapes behind the sub-headings to match the current logo colour/image on refresh as well. This would mean if the logo changed to the blue logo, I'd need all the sub-headings to be blue, and vice versa for another 3 colours.I'm struggling to understand how I can achieve this. At the moment, I have a javascript inside the code of the index page allowing logo image change on refresh but need the sub-headings to change in sync too.
I am trying to include some javascript in my website which rotates some stored images. I have attached the code for the index page of my website as i am having some problems getting it to work. Can anyone see where i am going wrong? This is my first attempt.
ode for background image and title rotation!I'd like to get images one, two and three to rotate every one second, and have titles change according to the images. Currently both background and titles are not rotating.. ;-;
<script> window.onload = rotate; var adImages = new Array('one.jpg','two.jpg','three.jpg');
Right now I have a random rotating slideshow with delay script implemented on a website. However I want to make ONE of the slides/images clickable to open up a PDF docCan you please let me know what I need to add/change in this to make it do what I need? I am not big on java so
<script language="javascript"> /* Random image slideshow- By Tyler Clarke (tyler@ihatecoffee.com)
I am making a website and I have image rotation written in javascript and atm I am trying to change the boarder around my image rotation because right now the boarder is purple but nothing I do seams to work so. Here is my code <a href="Page2.html"><img id="r1" src="images/Pro-Tech Antivirus Cover.jpg" alt="" border="5"></a> Its all defined and everything I just need to no how to change the border so its not purple. I want it to be dark cyan?
New to the forum. I have a question regarding Random Image Rotation. The code I have is working fine for a single image to rotate out. I want to stack another rotating image directly above the current rotating image. How can I accomplish this? Not a simple copy the same code.
I have inherited an image scroller that works perfectly. That said, the PM said the client now wishes that upon refresh or a new landing on that page - the initial image would randomize. I thought it would be cake to fix this. Not so. I have tried Math.random at every conceivable place in the function. I get bumpkis. Here is where I think the problem is . . . if anyone would like to take a crack at this.
Code: // 4. paging function function gotoPage(page) { var dir = page < currentPage ? -1 : 1, n = Math.abs(currentPage - page),