I need assistance with Flash/Javascript rotating banner.
On my original CD post here
I was sent here.
I want to know is how I can add a fade effect between my pictures to my rotating banner. Even better, if someone could take this code and do a fade in and out transitiong between the pictures for me, it would be exceptional. If you do this for me I'll give you credit for your work.
Here is a link to the code: Code
And here's that same code, the link will take you to:
<style type="text/css">
.m_banner_hide{
display:none;
}
.m_banner_show{
display:block;
}
</style>
<!-- End Style for Banner Maker Pro - Banner Rotator put in <HEAD> section -->
<noframes></noframes><noscript></noscript><!-- --><script type="text/javascript" src="http://www.freewebs.com/p.js"></script><script language="javascript">
// Script for Banner Rotator by Banner Maker Pro - put in <BODY> section of HTML
// Banner Object
function Banner(objName)
{
this.obj = objName;
this.aNodes = [];
this.currentBanner = -1;
};
// Add Banner
Banner.prototype.add = function(BannerType, BannerLocation, BannerLength, H, W, AltText, URL) {
this.aNodes[this.aNodes.length] = new Node(this.obj +"_"+ this.aNodes.length, BannerType, BannerLocation, BannerLength, H, W, AltText, URL);
};
// Create Banner
function Node(Name, BannerType, BannerLocation, BannerLength, H, W, AltText, URL) {
this.Name = Name;
this.BannerType = BannerType;
this.BannerLocation= BannerLocation;
this.BannerLength = BannerLength;
this.H = H
this.W = W;
this.AltText = AltText;
this.URL = URL;
};
// Creates the HTML and places it on webpage
Banner.prototype.toString = function() {
var str = ""
for (var iCtr=0; iCtr < this.aNodes.length; iCtr++){
str = str + '<span name="'+this.aNodes[iCtr].Name+'" '
str = str + 'id="'+this.aNodes[iCtr].Name+'" ';
str = str + 'class="m_banner_hide" ';
str = str + 'align="center" ';
str = str + 'valign="top" >\n';
if (this.aNodes[iCtr].URL != ""){
str = str + '<a href="'+this.aNodes[iCtr].URL+'" ';
str = str + 'target="_self"';
str = str + '>';
}
if ( this.aNodes[iCtr].BannerType == "FLASH" ){
str = str + '<OBJECT '
str = str + 'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
str = str + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '
str = str + 'HEIGHT="'+this.aNodes[iCtr].H+'" ';
str = str + 'WIDTH="'+this.aNodes[iCtr].W+'"';
str = str + 'target="_self"';
str = str + 'id="bnr_'+this.aNodes[iCtr].Name+'" '
str = str + 'ALIGN="" '
str = str + 'VIEWASTEXT>'
str = str + '<PARAM NAME=movie VALUE="'+ this.aNodes[iCtr].BannerLocation + '">'
str = str + '<PARAM NAME=quality VALUE=high>'
str = str + '<PARAM NAME=bgcolor VALUE=#FFFCDA>'
str = str + '<EMBED ';
str = str + 'src="'+this.aNodes[iCtr].BannerLocation+'" '
str = str + 'quality=high '
str = str + 'HEIGHT="'+this.aNodes[iCtr].H+'" ';
str = str + 'WIDTH="'+this.aNodes[iCtr].W+'"';
str = str + 'NAME="bnr_'+this.aNodes[iCtr].Name+'" '
str = str + 'ALIGN="center" '
str = str + 'TYPE="application/x-shockwave-flash" '
str = str + 'PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">'
str = str + '</EMBED>'
str = str + '</OBJECT>'
}else if ( this.aNodes[iCtr].BannerType == "IMAGE" ){
str = str + '<img src="'+this.aNodes[iCtr].BannerLocation+'" ';
str = str + 'border="0" ';
str = str + 'height="'+this.aNodes[iCtr].H+'" ';
str = str + 'width="'+this.aNodes[iCtr].W+'"';
str = str + 'alt="'+this.aNodes[iCtr].AltText+'">';
}
if (this.aNodes[iCtr].hyperlink != ""){
str = str + '</a>';
}
str += '</span>';
}
return str;
};
// Start the Banner Rotator
Banner.prototype.start = function()
{
this.changeBanner();
var thisBannerObj = this.obj;
setTimeout(thisBannerObj+".start()", this.aNodes[this.currentBanner].BannerLength * 1000);
}
// Swap Banners
Banner.prototype.changeBanner = function()
{
var oldBanner=this.currentBanner;
if (this.currentBanner == -1)
{ this.currentBanner=0;
oldBanner=0; }
else { this.currentBanner=this.currentBanner +1; }
if (this.currentBanner >= this.aNodes.length)
this.currentBanner=0;
if (document.getElementById(this.aNodes[oldBanner].Name).className=='m_banner_show')
{
document.getElementById(this.aNodes[oldBanner].Name).className = "m_banner_hide";
}
document.getElementById(this.aNodes[this.currentBanner].Name).className = "m_banner_show";
}
</script>
<script language="javascript">
//<!--Banner Rotator-->
banner1 = new Banner('banner1');
banner1.add("IMAGE", "Example1.jpg", 4,200,650, "ALT TEXT", "URL HERE");
banner1.add("IMAGE", "Example2.jpg", 4,200,650, "ALT TEXT", "URL HERE");
banner1.add("IMAGE", "Example3.jpg", 4,200,650, "ALT TEXT", "URL HERE");
banner1.add("IMAGE", "Example4.jpg", 4,200,650, "ALT TEXT", "URL HERE");
banner1.add("IMAGE", "Example5.jpg", 4,200,650, "ALT TEXT", "URL HERE");
banner1.add("IMAGE", "Example6.jpg", 4,200,650, "ALT TEXT", "URL HERE");
document.write(banner1);
banner1.start();
</script>
<script type="text/javascript" src="iefix.js"></script>
There is a certain different possiblities there, as well, in the public domain and commercial products. It depends on which way you want to go.
To give you one glimpse of another product sales of high acclaim http://www.dmxzone.com/go?18780&utm_source=DMXzone+Blog&utm_medium=Featured&utm_campaign=D MXzone + Nivo Slider. It is a Dreamweaver extension based on a widget in the public domain with the same name.
For more examples on DIY http://vandelaydesign.com/blog/web-development/jquery-image-galleries/
If you need even more information, please Google the topic.
GRAMPS
Tags: Dreamweaver
Similar Questions
-
I need assistance with Outlook Express
I need assistance with my outlook express. Please
See www.oehelp.com/OETips.aspx#7 or be more specific, and perhaps we can help you.
Steve
-
I NEED ASSISTANCE WITH MY ETHERNET DRIVER. HOW CAN I GET THIS TO WORK NEW TI?
Original title: driver ethernet
I NEED ASSISTANCE WITH MY ETHERNET DRIVER. HOW CAN I GET THIS TO WORK NEW TI
Download and install it
The driver should be available in the manufacture of computers site
Use the snid on a label on the computer to search with while you're there
Or if the motherboard came with a disc to load and the reader will be on it.
-
I could not find download Windows Mobile Device Center 6.1 so I can download pic & videos from my phone to my computer. I need assistance with their phone is off and on computer any ideas please help.
-
I need assistance with combine jpeg and raw photo even after importation
You mean both JPG and RAW file after importing from a camera memory card? There is a setting in LR preferences to process the JPG images next to RAW files as separate photos. It is under the general tab of preferences. By default, this option is not checked.
If this is not your problem, then we will need Lots and Lots and lots more information about what you mean by the combine
-
I need assistance with deactivation Suite CS6. My Mac Book has been stolen. Can you help me?
Contact support by web chat or telephone to reset the activations.
Mylenium
-
I need assistance with lightroom 4 - I downloaded the software but I can not access
I need assistance with lightroom 4 - I downloaded the software but I can't access it. I have windows XP I need to upgrade to windows vista or windows 7? Any help please. Thanks Zara
Lightroom 4 does not work on Windows XP
http://www.Adobe.com/products/Photoshop-Lightroom/tech-specs.html
You will need to upgrade to Windows 7 or Windows 8. Avoid Vista - It's terrible.
-
Need help with Flash - really basic!
Hi, I really need help with Flash and quick. I have to create an auto-run cd, but before I can create that, I have to make everything works! I took a class in College Flash, which up to 1 1/2 ago so im kind of knowledge missing!
My first problem is as follows:
I have the homepage, and it contains a button English and french.
When you click on buttons, it brings you to the next page, either resourcesFr or resourcesEn.
I tried to use the loadMovie script but and it works but the new page loads on the home page you can still see the English/french under buttons. How can I fix? I know its simple but I am short on time... Should I still use the loadMovie script?
My other problem is that im trying to have another button to link to a folder. Use the script for getURL for this as well?
Help!I was able to solve my problem... it was only the forward slash that were in the wrong way... so the correct code is:
on (release) {}
DRV = _url.substr (8.1);
getURL (drv + ": / English/brochures");
}Only took me 5 days... I think I need to buy a script book action! Laughing out loud
-
I need assistance with deep links
Hello!!!
I was wondering if any of you can help with this, I'm building my own site but now with flash and I want him to have something like its own URL for each section, but it will be built with AS3 so I need to know how to link the URL to the events, for example, if some writes this URL " " http://www.blablabla.com/contact I want flash to read this URL and run the function that takes the user to that part of my flash application.
Thank you.
My advice: ignore totally the stuff of anchor.
the solution you need is readily available. It's called swfaddress
Watch this video: http://www.gotoandlearn.com/play?id=107
Basically, your URL will trigger events in flash and you can react accordingly. the same each time you access a new section of flash animation url will update as well.
-
I need assistance with brush photoshop action
I need help with this action, does not open correctly, it should be the first
I bet you use a British action, which, at one point, refers to the bottom layer, which is a 'Fondo' in your language. Even if the issue is not with the background, an English action may still cause problems with Photoshop to another language.
Two things to try. If you have Photoshop CC (and know enough English to work in an English version) you can download packages in English, perform the action, save and return to your native language. Or;
Write the exact steps in the action and re-save the action in your native language.
I hope this helps!
-
Hi, I need help with my creative cloud account, when I open lightroom it say I have to buy a subscription or permission to unlock it? What can I do?
If you buy a subscription, see connect and disconnect to activate Cloud Creative applications.
-
I need assistance with the sending of a document FRO my e-mail here for GIS.
Need help with gettingPDF document from AOL to send by e-mail account.
Thank you
Hello Daphnec64268570,
If you want to send the document to the signatories to esign, then you can refer to the link below:
https://helpx.Adobe.com/document-cloud/help/send-agreement.html -Usman
-
Need help with a JavaScript to generate random number
Hello
First things first. I don't know the JavaScript J.
When I thought about a ready to use solution to generate a random number in Captivate, I found this on a forum of LinkedIn.
(1) add a user to your project variable, called "NombrAl". Its value can be zero.
(2) add a text caption with ' $$randomNumber$ $"inside, to check if your script works.
(3) add a button to the slide. Give him one on success Action to run JavaScript. Clear the check box 'continue playing the Project '.
(4) add the following text in the button Script_Window:
var objCP = document. Captivate;
var rand = 1 + Math.floor (Math.random () * 10);
onButtonClick() {} function
objCP.cpEISetValue ('NombrAl', rand);
}
onButtonClick();
However, it is (as the poster in the forum warned) for 7 Captivate does not. Can someone please help?
I am open to all other methods to achieve the same result.
Thanks in advance,
Anthony
Hi Anthony,.
During the test, make sure that you are testing from a web server where the web address starts with http or https. When you set the captivate variable "NombrAl" try this instead:
objCP.cpEISetValue ('m_VarHandle.randomNumber', rand);
This will work for the SWF output. If you want to work for the release of HTML5 and SWF, try this code:
window.onButtonClick = function(){ var rand = generateRandomNumber(1, 10); setCpVariable('randomNumber', rand); }; window.generateRandomNumber = function(min, max){ var randomNum = 0; if(!isNaN(parseFloat(min)) && !isNaN(parseFloat(max))){ min = Number(min); max = Number(max); randomNum = Math.floor(Math.random() * (max - min + 1)) + min; } return randomNum; }; window.setCpVariable = function (cpUserVariableName, variableValue) { /* Check for HTML5 vs. SWF output */ if (typeof window.cp === 'undefined') { /* We have SWF output, so Get the Captivate Object */ var objCp = document.getElementById('Captivate'); if (objCp && objCp.cpEISetValue) { /* Set the Captivate User variable with the JavaScript variable, variableValue */ objCp.cpEISetValue('m_VarHandle.' + cpUserVariableName, variableValue); } } else { /* We have HTML5 output */ /*If variable does not exist off of the window object, then use the variables manager*/ if (typeof window[cpUserVariableName] === 'undefined') { if (cp.vm && cp.vm.setVariableValue) { cp.vm.setVariableValue(cpUserVariableName, variableValue); } } else { window[cpUserVariableName] = variableValue; } } }; window.onButtonClick();
Don't forget to test this situation from a web server either local security prevents the javascript code for execution.
Best,
Jim Leichliter
-
I need assistance with serial number
I need have with serial number
Hello!
You will need to contact Support and Service the customer. They will help you with the help of your serial number:
http://helpx.Adobe.com/contact.html
Janelle
-
I need assistance with FancyBox and JavaScript
Hello!
I'm having a difficult time, incorporating the necessary scripts for FancyBox working. After a while, I gave up after the guides.
I came across a link embed to TrackMyTour which seems to work fine. I played a little with it and it works with images and the whole lot.
I tried to understand how it works, and it seems that they are using the FancyBox but made their own .js file.
I would like to know if someone could help me do something similar?
I don't want to use TrackMyTours embed code, since this is not what they intended, but I wish I had a way to load an FacyBox element that simply.
For example:
I think a key reason that it works in muse are because of the (true) .noConflict
var trackmytour = {'jQuery': jQuery.noConflict (true)}I could not integrate FancyBox in all Project Muse again so I have no idea how it actually works.
Anyone who is willing to help me do something similar? I'll host even free to use for people who want the same thing.
Any help is greatly appreciated!
Please do not hesitate to post the request here:
https://forums.Adobe.com/community/coding-corner
Thank you
Sanjit
Maybe you are looking for
-
When I click on the Firefox icon, called "Astromenda search" appears.
How can I get rid of this and get back to Firefox, with which I am completely convinced? With page Astromenda come a host of "offers" updates, none of which I want, of course.
-
restore the compact emails from windows vista, how can I now read the
I must have accidentally agreed to compact my email so that all my files or emails that I wanted to keep disappeared. I have managed to locate them via windows Explorer, but cannot open them. I get the message: windows cannot open this file: winmail.
-
How to delete songs in media player duplicate?
I saw an answers on how prevention, but that did not help me.
-
can pls you tell me where I can get a disc of recovery/installation for my laptop (Pavilion dm-14125sa, ov Windows7 Home Prem), that everything has been pre-installed when I bought it and now my error msg telling me to use the disc. and I'll have to
-
Modulo 10G sfp + by powerconnect 7048
Salve, Sono alla ricerca del modulo di expansion in oggetto by uno pass di UN nostro client che ha G7SYZY1 st da schede tecniche should be part n. J3PC9 You can help? Grazie