English 中文(简体)
是否可行的是,在“压力”网页上打上灯片?
原标题:Is it feasible to run inline jQuery script inside a WordPress page?

难道不可能在一页(在线)的中间进行 j?

我试图在“压力”模板中操作这一守则。

<script type="text/javascript">
jQuery(document).ready( function() {
  jQuery(".upb_row_bg").css("filter","blur(30px)");
});
</script>

However it seems to have no affect on the element in question. In fact if cannot even select the element - console.log( jQuery(".upb_row_bg).length; shows 0.

如果在“快乐”一词功能之后,我把同样的代码放在封闭的标签之前,它就发挥了作用。 如果我把它放在脚步之前,那就没有了。

任何想法? 我在另一个网页上有另一个文字,我能够使用由文字过滤产生的简单的在线文字......

<script>jQuery( "figure" ).replaceWith( "<div class=”new-class”>” + jQuery( "figure" ).html() + "</div>" );</script>

This works as expected even though with this snippet there is no event to trigger it, it just runs and replaced the preceding element. So inline scripts must work.

我感到困惑。

问题回答

Your syntax looks strange.

<script type="text/javascript">
$(document).ready(function() {
  $( .upb_row_bg ).css( filter ,  blur(30px) );
});
</script>

<代码>图不像有效选任人,使用类别或识别码。

就你试图用你的第二部法典完成的工作而言,我们只是做些什么:

<script>$( #figure ).addClass( new-class )</script>

或者,如果你真的需要<代码>figure,就不必回答问题。

<script>$( .figure ).addClass( new-class ); $( .new-class ).removeClass( figure )</script>




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签