WordPress 添加鼠标点击特效
实际上这种教程在网上搜索一下有一大堆,已经是各大博主玩烂的东西了。不过既然给自己的博客加上了这个,那就也凑数发一篇吧。
找到自己wp的主题文件夹,在 footer.php文件中的
<?php wp_footer(); ?>
代码前,添加下面代码
<script type="text/javascript">
var a_idx = 0;
jQuery(document).ready(function($) {
$("body").click(function(e) {
var a = new Array("文字", "文字2");
var $i = $("<span/>").text(a[a_idx]);
a_idx = (a_idx + 1) % a.length;
var x = e.pageX,
y = e.pageY;
$i.css({
"z-index": 9999,
"top": y - 20,
"left": x,
"position": "absolute",
"font-weight": "bold",
"color": "#ff6651"
});
$("body").append($i);
$i.animate({
"top": y - 180,
"opacity": 0
},
1500,
function() {
$i.remove();
});
});
});
</script>
然后刷新一下网页,就有了
Wow, this post is pleasant, my younger sister is analyzing such things, so I am going to convey her.
Also visit my page … CBD oil for dogs
This piece of writing presents clear idea for the new people of blogging, that actually how to do
blogging.
Also visit my web page CBD for sale
Hi mates, its enormous article on the topic of cultureand completely defined, keep
it up all the time.
Check out my web blog :: CBD oil for dogs
You actually make it seem really easy together with your presentation however I to find this topic to be
really one thing that I think I would never understand. It kind of feels too complex and very broad for me.
I am having a look ahead on your subsequent post, I’ll attempt to get the cling of it!
Here is my blog … CBD oil for dogs
hello there and thank you for your info – I’ve certainly picked up something new from right here.
I did however expertise several technical points using this web site,
since I experienced to reload the website a lot of times previous to I could get
it to load properly. I had been wondering if your web host is
OK? Not that I’m complaining, but slow loading instances times will sometimes affect your placement in google and
could damage your high quality score if advertising and marketing with Adwords.
Well I’m adding this RSS to my email and can look
out for much more of your respective fascinating
content. Make sure you update this again soon.
Here is my homepage … best cbd oil for sleep
Awesome blog! Is your theme custom made or did you download it from somewhere?
A design like yours with a few simple tweeks would really
make my blog jump out. Please let me know where you got your design. Appreciate it
Hi there! I realize this is kind of off-topic however I needed
to ask. Does operating a well-established website such as yours require a lot of
work? I am completely new to running a blog however I do write in my diary on a daily basis.
I’d like to start a blog so I can easily share my experience and views online.
Please let me know if you have any kind of suggestions or tips for new aspiring bloggers.
Appreciate it!
Hi, i think that i saw you visited my web site thus i came
to “return the favor”.I am attempting to find things to enhance my site!I suppose its ok to
use a few of your ideas!!
Hi! Would you mind if I share your blog with my
zynga group? There’s a lot of folks that I think would really appreciate your content.
Please let me know. Cheers
Hi! I just wanted to ask if you ever have any trouble with hackers?
My last blog (wordpress) was hacked and I ended up losing
many months of hard work due to no backup. Do you have any methods to prevent hackers?
magnificent points altogether, you simply gained a logo new reader.
What may you recommend in regards to your submit that you made a few days in the past?
Any positive?
Good day very nice web site!! Man .. Excellent .. Amazing ..
I will bookmark your website and take the feeds also?
I’m satisfied to find a lot of helpful information here within the put
up, we’d like work out more strategies in this regard,
thank you for sharing. . . . . .
Hello there, There’s no doubt that your blog could possibly be having web browser compatibility issues.
When I look at your blog in Safari, it looks fine however, when opening in Internet Explorer, it’s got some overlapping issues.
I simply wanted to give you a quick heads up! Aside from that, fantastic
site!
https://www.google.bf/url?sa=i&url=https://med.gen.tr/
https://www.google.gp/url?sa=i&url=https://med.gen.tr/
https://www.google.gg/url?sa=i&url=https://izmirtekel.com/
I just like the valuable information you provide for your articles.
I will bookmark your weblog and check again right here regularly.
I’m fairly certain I will be told lots of new stuff proper right here!
Best of luck for the next!
buy delta 8 THC area 52 – buy delta 8 THC area 52
buy delta 8 THC area 52 – Area 52 delta 8 carts
delta 8 area 52 – delta 8 carts Area 52
delta 8 THC area 52 – area 52 delta 8 THC products
delta 8 area 52 – Area 52 Delta 8 THC
I was wondering if you ever thought of changing the structure of your site?
Its very well written; I love what youve got to say.
But maybe you could a little more in the way
of content so people could connect with it better.
Youve got an awful lot of text for only having 1 or 2 images.
Maybe you could space it out better?
buy delta 8 THC area 52 – buy delta 8 THC area 52
buy delta 8 THC area 52 – Area 52 delta 8 carts
delta 8 THC area 52 – area 52 delta 8 THC products
delta 8 THC area 52 – area 52 delta 8 THC products
Area 52 delta 8 carts – delta 8 THC area 52
bookmarked!!, I really like your site!
Area 52 delta 8 carts – Area 52 delta 8 carts
Area 52 delta 8 carts – buy delta 8 THC area 52
delta 8 THC for sale area 52 – Area 52 Delta 8 THC
Area 52 delta 8 carts – buy delta 8 THC area 52
Area 52 Delta 8 THC – delta 8 THC for sale area 52
At this moment I am going to do my breakfast, afterward having my breakfast coming again to
read other news.
Дом Gucci смотреть онлайн
смотреть бесплатно в хорошем качестве