@daleney

Встраивание 3d тура (flash-player) на сайт WordPress?

Всем доброго времени суток.
Стоит задача перенести 3d тур с одного сайта на другой, второй на WordPress.
Есть такой код
<?
/*
 *
 * Template name: Тур
 *
 */

get_header();

$cmsms_option = cmsms_get_global_options();

if(isset($_GET['wid'])) $width=$_GET['wid']; else $width=820;
if(isset($_GET['hei'])) $height=$_GET['hei']; else $height=540;
if(substr($_GET["path"],0,1)!="/") $GET["path"]="/".$_GET["path"];
$urlpage=$_GET["path"]; // адрез запрашиваемой страницы

$page=explode('/',$urlpage);?>
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black" />
		<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/modernizr-1.5.min.js">
		</script>
		<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/p2q_embed_object_1.js">
		</script>
		<script type="text/javascript">
			// hide URL field on the iPhone/iPod touch
			function hideUrlBar() {

				if (window.pageYOffset==0) {
					window.scrollTo(0, 1);
					// repeat every second for slow rendering pages
					setTimeout(function() { hideUrlBar(); }, 3000);
				}
			}
		</script>
		<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/pano2vr_player.js">
		</script>
		<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/3dtour/skin.js">
		</script>
		<script type="text/javascript">
		window.onload = function () {
		if (DetectFlashVer(9,0,0)) {
			p2q_EmbedFlash('<?echo $page[1];?>.swf',
				'<?echo $width;?>', '<?echo $height;?>',
				'bgcolor', '#f0f0f0',
				'play', 'true',
				'cache','true',
				'allowFullscreen','true',
				'autoplay','true');

		} else
		// check for CSS3 3D transformations
	if (Modernizr.csstransforms3d)
		{
			// create panorama container
			//document.getElementById("flashmovie")='<div id="container" style="width:780px;height:505px;"></div>';
			// create the panorama player with the container
			pano=new pano2vrPlayer("flashmovie");
			// add the skin object
			skin=new pano2vrSkin(pano);
			// load the configuration
			pano.readConfigUrl("<?echo $page[1];?>.xml");
			// hide the URL bar on the iPhone
			hideUrlBar();
		} else {
			document.write('This content requires HTML5/CSS3 or Adobe Flash Player Version 9 or higher. ');
		}
		}
		</script>
<!-- Стили ссылок, здесь не используются -->
<!-- Можно прописать title -->
<title></title>
</head>
<body width=100% height=100% style='margin:0px;padding:0px;background:#e7f4f9;'><center>
<div id=flashmovie style='width:<?echo $width;?>px;height:<?echo $height;?>px;'>
</div>
    <?php
    get_footer();
    ?>
<?
include "../config.inc";
$page=explode('/',$_SERVER["REQUEST_URI"]);
$code_tour=$page[1];

$query="select id_page,page_name from vt_page_tour where page_name='".$_SERVER['HTTP_REFERER']."' and code_tour='$code_tour'";
if($result=mysql_query($query) and mysql_num_rows($result)>0)
{
	$r=mysql_fetch_array($result);
	mysql_query("update vt_page_tour set count_name=count_name+1 where id_page=$r[id_page] and code_tour='$code_tour'");
}
else
{
	mysql_query("insert into vt_page_tour (page_name,count_name,code_tour) values ('".$_SERVER['HTTP_REFERER']."',1,'$code_tour')");	
}
?>
</body>
</html>


Прошу помощи, т.к. такого никогда не делал, и не особо в этом понимаю(
Я так понял что у меня что то не так указано для получения названия swf файла который нужно показать, в браузере путь к файлу определяется так src=".swf".
Помогите пожалуйста
  • Вопрос задан
  • 162 просмотра
Пригласить эксперта
Ответы на вопрос 2
firedragon
@firedragon
Не джун-мидл-сеньор, а трус-балбес-бывалый.
Флэш умер, флэш умер. Сообщите это заказчику
Ответ написан
@Lord_Dantes
Я закидывал этот 3D тур в папку с сайтом и потом просто через iframe выводил.
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы