0
我有一个使用PHP构建自己的页面,然后使用Jquery将一些SWF嵌入基于PHP中数据库连接的不同Flashvars的页面部分代码。然后,我有一个jQuery .click(function(){目前发出一个简单的警报来测试功能 - 这在Safari中按预期工作,但由于某些奇怪的原因,Firefox不会在Firefox下触发代码,有人可以提供一些线索上的Firefox问题:Firefox 3中的php,jquery,flash和.click功能3 - stumper
$(document).ready(function() {
$('#gallery<? echo $count; ?>').flash({
// test_flashvars.swf is the flash document
swf: 'button.swf',
width: 570,
height: 80,
// these arguments will be passed into the flash document
params: {
wmode: 'transparent',
},
flashvars: {
myText: "<?php echo urlencode($row['gal_Title']); ?>"
}
});
$('#gallery<? echo $count; ?>').click(function(){
alert('Alert <?php echo $count; ?>');
});
<?
$count = $count+1;
} else {
}
}
mysql_free_result($GalleryItems);
?>
页表面上的工作,我想我可以通过对瑞士法郎作为clickVar移动。点击功能,但我想点击启动一个AJAX调用来更新页面的一部分,这会导致我将问题从闪回抓回到jQuery元素 - 没有?
非常感谢您的帮助,
MM