Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Carrousel Flash


bilbaxo

Recommended Posts

Posted

Hello,

I tried to implement "carrousel Flash" (for example, downloadable here)in oscommerce2 but it doesn't work.

It is actually simple javascript and it works in a standalone page but not in the frame of oscommerce ???

no error message (but the one of the javascript in the code of carrousel flash : This slideshow requires Adobe Flash Player 9.0 (or higher). Javascript must be enabled.)

Somebody has a clue ?

Here is the page :http://www.ios.fr/carrousel.php

Thank's

Posted

Do you meet all the prereqs it lists (Flash Player 9.0, Javascript enabled)? Did you put it in the right place in your PHP code, so that it's showing up in the right place in your page HTML? It probably has some JS functions defined for the <head> of the page, and there must be something in the <body> to trigger the display. Is this for all pages or just one page? I would do a View > Page Source on the page and see where the Carrousel stuff is, and whether it was corrupted/incomplete/out of place. Of course, it will be most useful to have some familiarity with PHP, HTML, Javascript, and maybe Flash; so you can tell whether it was done correctly. Then, there are always the stupid mistakes such as having your Flash files in a different place than the code is looking for them in.

Posted

The code is good becauwse it works on a single page of the site : http://www.ios.fr/carrousel.php

There is a "head" part and a "body" part.

I put the head part in "index.php" and I try the body part in header or footer without result.

I try to put it in a clezn page with only the columns and the header and footer without success.

The code is relatively simple :

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

 

<script type="text/javascript" src="swfobject.js"></script>

 

<style type="text/css">

html, body {

height: 100%;

margin: 0px;

border: 0px;

padding: 0px;

color: black;

background: transparent;

}

.carousel_container {

width: 100%;

height: 150;

}

</style>

</head>

 

<body>

 

<div class="carousel_container">

<div id="carousel1">

<p>This slideshow requires <a href="http://www.adobe.com/go/getflashplayer">Adobe Flash Player 9.0</a> (or higher). Javascript must be enabled.</p>

</div>

</div>

<script type="text/javascript">

swfobject.embedSWF("Carousel.swf", "carousel1", "100%", "100%", "9.0.0", false, {xmlfile:"default.xml", loaderColor:"0xCCCCCC"}, {wmode: "transparent"});

</script>

 

</body>

</html>

Thank's for your answer

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...