0
나는 jquery와 변수를 사용하는 방법을 찾고있다.jquery와 변수 컨테이너
하이퍼 링크에서 src attribbute를 얻습니다.
하지만 jw 플레이어의 하이퍼 링크에 추가하고 싶습니다.
'640','467','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','I need the href attribute to go in here');
so.write('mediaspace');
내 문제는 더 DIV가에 APPEND가없고 난 그냥 하이퍼 링크 할 필요가 있기 때문에 그것을 apend이 공간에 물건을 올려 캔트이다.
<a class="video_click" href="video/link.flv" rel="prettyPhoto" title="Flash 10 demo"><?php echo "$fname"; ?></a>
<script type="text/javascript">
$('a.video_click').click(function(event){
event.preventDefault();
var test = $(this).attr('href');
alert(test);
});
그래서 내가
{$name}
또는 뭔가 말을 추가 할 수있는 방법은 자신의 자신있는 HREF를 잡아?
아직 작동하지 않을 수 있습니다. 어떻게하면 preg_match로 첫 번째 href를 찾을 수 있는지 알아볼 수 있습니다. – iSimpleDesign