I'm Trying to put a banner that rotates 3 images on a bigcommerce.com platform which is in HTML and banner in Java - can anyone see why isn't working?

Thanks for the help !

<div class="Block FeaturedProducts Moveable Panel" id="HomeFeaturedProducts" style="display:%%GLOBAL_HideHomeFeaturedProductsPanel%%"">
<h2" dirty="false">%%SNIPPET_HomeFeaturedProductsFeed%%%%LNG_FeaturedProducts%%</h2" dirty="false">
<div class="BlockContent"">

<script language="javascript"">
// SPECIFY THE NAME OF BANNER HERE
// REMEMBER THAT NAME OF VARIABLE AND ARGUMENT PASSED SHOULD BE SAME
// HERE IT IS 'banner1'
banner1 = new Banner('banner1');

// IF YOU WANT THE BANNER TO CHANGE ON PAGE REFRESH
// THEN SET THE FOLLOWING VALUE TO true (DEFAULT VALUE IS false)
banner1.changeOnRefresh = false;

// ADD THE BANNER HERE
// FIRST ARGUMENT : "FLASH" OR "IMAGE"
// SECONG ARGUMENT: PATH OF THE FILE
// THIRD ARGUMENT : DURATION IN SECONDS
// FOURTH ARGUMENT : HEIGHT
// FIFTH ARGUMENT : WIDTH
// SIXTH ARGUMENT: HYPERLINK
// SEVENTH ARGUMENT: TARGET
banner1.add("IMAGE", "http://orbiselectronics.mybigcommerce.com/content/bannerimages/1.jpg", 3, 210, 600,"http://net-impulse.com", "_blank");
banner1.add("IMAGE", "http://orbiselectronics.mybigcommerce.com/content/bannerimages/2.jpg", 3, 210, 600,"http://net-impulse.com", "_blank");
banner1.add("IMAGE", "http://orbiselectronics.mybigcommerce.com/content/bannerimages/3.jpg", 3, 210, 600,"http://net-impulse.com", "_blank");

// START THE BANNER
document.write(banner1);
banner1.start();
</script " dirty="false"> </div" dirty="false">
<br class="Clear" "/>
</div" dirty="false">

That is some real strange quote work you got there. Perhaps if you would clean up your quotes it might help...

Example of a correct usage of quotes (the code has nothing to do with yours, just watch how the quotes are placed):

<div class="someClass">
 <hr class="main_sep" />
 <img src="images/img001.png" border="0" />
 <hr class="main_sep" />
</div>

~G

Are you sure this is how the code should be? I corrected those misplaced double quotes, but I am still not sure; especially the last part of the code... What are 'dirty' properties?

<div class="Block FeaturedProducts Moveable Panel" id="HomeFeaturedProducts" style="display:%%GLOBAL_HideHomeFeaturedProductsPanel%%">
<h2 dirty="false">%%SNIPPET_HomeFeaturedProductsFeed%%%%LNG_FeaturedProducts%%</h2 dirty="false">
<div class="BlockContent">

<script language="javascript">
// SPECIFY THE NAME OF BANNER HERE
// REMEMBER THAT NAME OF VARIABLE AND ARGUMENT PASSED SHOULD BE SAME
// HERE IT IS 'banner1'
banner1 = new Banner('banner1');

// IF YOU WANT THE BANNER TO CHANGE ON PAGE REFRESH
// THEN SET THE FOLLOWING VALUE TO true (DEFAULT VALUE IS false)
banner1.changeOnRefresh = false;

// ADD THE BANNER HERE
// FIRST ARGUMENT : "FLASH" OR "IMAGE"
// SECONG ARGUMENT: PATH OF THE FILE
// THIRD ARGUMENT : DURATION IN SECONDS
// FOURTH ARGUMENT : HEIGHT
// FIFTH ARGUMENT : WIDTH
// SIXTH ARGUMENT: HYPERLINK
// SEVENTH ARGUMENT: TARGET
banner1.add("IMAGE", "http://orbiselectronics.mybigcommerce.com/content/bannerimages/1.jpg", 3, 210, 600,"http://net-impulse.com", "_blank");
banner1.add("IMAGE", "http://orbiselectronics.mybigcommerce.com/content/bannerimages/2.jpg", 3, 210, 600,"http://net-impulse.com", "_blank");
banner1.add("IMAGE", "http://orbiselectronics.mybigcommerce.com/content/bannerimages/3.jpg", 3, 210, 600,"http://net-impulse.com", "_blank");

// START THE BANNER
document.write(banner1);
banner1.start();

/*
 This part is very odd. I believe it is wrong.
 </script " dirty="false"> </div" dirty="false">
 <br class="Clear" "/>
 </div" dirty="false">

 Should it be as followed...
 </script> <div dirty="false"> </div>
 <div dirty="false">
 <br class="Clear" />
 </div>
 */

Right... dirty is not a property of any type of HTML, except if someone made his own using XML. However, your code should be the foolowing:

<div class="Block FeaturedProducts Moveable Panel" id="HomeFeaturedProducts" style="display:%%GLOBAL_HideHomeFeaturedProductsPanel%%">
<h2>%%SNIPPET_HomeFeaturedProductsFeed%%%%LNG_FeaturedProducts%%</h2>
<div class="BlockContent">
<script type="text/javascript">
// SPECIFY THE NAME OF BANNER HERE
// REMEMBER THAT NAME OF VARIABLE AND ARGUMENT PASSED SHOULD BE SAME
// HERE IT IS 'banner1'
var banner1 = new Banner('banner1');

// IF YOU WANT THE BANNER TO CHANGE ON PAGE REFRESH
// THEN SET THE FOLLOWING VALUE TO true (DEFAULT VALUE IS false)
banner1.changeOnRefresh = false;

// ADD THE BANNER HERE
// FIRST ARGUMENT : "FLASH" OR "IMAGE"
// SECONG ARGUMENT: PATH OF THE FILE
// THIRD ARGUMENT : DURATION IN SECONDS
// FOURTH ARGUMENT : HEIGHT
// FIFTH ARGUMENT : WIDTH
// SIXTH ARGUMENT: HYPERLINK
// SEVENTH ARGUMENT: TARGET
banner1.add("IMAGE", "http://orbiselectronics.mybigcommerce.com/content/bannerimages/1.jpg", 3, 210, 600,"http://net-impulse.com", "_blank");
banner1.add("IMAGE", "http://orbiselectronics.mybigcommerce.com/content/bannerimages/2.jpg", 3, 210, 600,"http://net-impulse.com", "_blank");
banner1.add("IMAGE", "http://orbiselectronics.mybigcommerce.com/content/bannerimages/3.jpg", 3, 210, 600,"http://net-impulse.com", "_blank");

// START THE BANNER
document.write(banner1);
banner1.start();

</script> 
</div>

If the HTML you were given by the writer of this script is as good as his JavaScript writing skills, this might not even work.

~G

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.