仍然将我的脚趾浸入 jQuery 中。我有这个:
<span id="copyButton" class="copyButton">
<object id="copy_but" width="100%" height="30" align="middle" style="width:100%;height:30px;" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
<param value="http://cdn.domain.com/Graphics/images/share/copyButton.swf" name="movie">
<param value="Transparent" name="wmode">
<param value="text2copy=http://domain.us/1acSKSF" name="FlashVars">
<param value="sameDomain" name="allowScriptAccess">
<param value="false" name="allowFullScreen">
<param value="high" name="quality">
<param value="#f7f7f7" name="bgcolor">
<object width="100%" height="30" style="width:100%;height:30px;" data="http://cdn.domain.com/Graphics/images/share/copyButton.swf" type="application/x-shockwave-flash">
<param value="http://cdn.domain.com/Graphics/images/share/copyButton.swf" name="movie">
<param value="Transparent" name="wmode">
<param value="text2copy=http://domain.us/1acSKSF" name="FlashVars">
<param value="sameDomain" name="allowScriptAccess">
<param value="false" name="allowFullScreen">
<param value="high" name="quality">
<param value="#f7f7f7" name="bgcolor">
<a href="http://www.adobe.com/go/getflash">
</object>
</object>
</span>
我想更改两个区域中显示“text2copy”的 URL。我试图测试读取值的几行是(总是返回“未定义”):
$("#copy_but param[name='FlashVars']").attr("value")
$("param[value*='text2copy']").attr("value")
有没有人有任何想法?