I was wondering if it were possible to write a piece of JavaScript which would cycle through all of the ads in a particular ad group (one ad fades out and another fades in or some such thing). Could someone point me in the right direction?
I was wondering if it were possible to write a piece of JavaScript which would cycle through all of the ads in a particular ad group (one ad fades out and another fades in or some such thing). Could someone point me in the right direction?
Comments
Comment #1
jeremy commentedIt's certainly possible, but it's not something that's planned to be implemented for this module. Well written contributions welcome.
Comment #2
bdimaggioI know it's been awhile since this was posted, but I thought I'd post a little how-to, since we had to get this going for a client recently. Rather than alter the module, I made all changes within my theme:
Note: use of the heredoc syntax ("<<<JQ") means that this line
can't have any spaces or tabs in front of it. Also, note that you'll have to use the "jquery" method to display your ads. And of course, be sure to replace [yourthemename] above with, well, your theme name.
Comment #3
Plascual commentedWould this be really hard to allow changing timeout for each individual ad ?
Comment #4
the3dart commentedthank you very much for your solution, a was searching for this from days and did not find anything until your solution
Thanks again
Comment #5
fizk commentedComment #6
Mike Dodd commentedHere is how to set the delay for each image.
I have done is as 4 seconds * the probability of it displaying. (4 seconds is worked out from the base probability 100 * 40 in the code below)
and then js like:
and then change your Jcarousel code to:
Comment #7
lrwebks commentedDrupal 6 is EOL and no longer supported. Closing this as outdated for that reason. Thanks for your contribution!