Js perfect implementation @ mentioned Friends special effects (compatible with various browsers)
This article will share with you a special effect that uses javascript to perfectly implement @ friends auto-prompting compatible with various browsers. It is based on the effect of Baidu Post bars and is recommended to our friends, I hope you will like it.
Requirem
Recently, I saw a JS special effect on the Internet, allowing the text to be displayed one by one on the webpage, just like manually inputting the text one by one.CodeCopy the file and run it locally. It is found that these JS files are only valid in IE and are ineffective in other browsers. Therefore, I have made some improvements on this basis to make this effect available in all browsers.
The following is the source code of JS
Function implementation:
1. image loading ImageLoader implementation:
1) Use a blocking queue to store images: BlockingQueue images = new ArrayBlockingQueue
2) The Image queue ends with the Image eof: Image eof = new WritableImage (1, 1 );
3) read the specified image cyclically. Because the queue is blocked, the thread will automatically block when the queue is full.
Copy codeThe Code is as follows: public void run (){
Int id = 0;
Try {
While (true ){
String path = resources [id];
InputStream
JQuery and CSS3: special screen sliding menu effects, jquerycss3
This is a very cool jQuery and CSS3 full screen sliding menu special effect plug-in. The effect of this plug-in is that when you click the main menu button, the full screen menu slides out from the left side of the screen, and the main menu button dynamically rotates the replacement icon.
Demons
There are many special effects on navigation bar design, but have you browsed such a special effect on navigation bar? When you move the mouse over the navigation column, the navigation column will be covered by a "mask", and the "mask" will be removed when you move the mouse away. In fact, you can set two CSS attributes in Dreamweaver MX to c
First, grayscale grayscaleWith this effect, the image will be grayed out, and if you do not have any parameter values in grayscale (), it will be rendered with the default value of "100%". The effect is as follows:Code:#gray {-webkit-filter:grayscale (1);}If you set the parameter value in grayscale (), it will change from color to black and white, as follows:Code:#gray {-webkit-filter:grayscale (0.5);}second, Sepia brown, BrownUse this special effect,
The online world is amazing. If special effects are used properly on beautiful pages, they will certainly increase. The following is my summary of special effects:Beating textWant to see the dancing text? Come on!Code: First add 〉Add onLoad = "font11 ();"Add Features: The text color and size can be changed randomly.Extension: multiple groups of code can be added
Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn how to batch download templates and special effects of the "material fire" website. For details, refer to the content description.
Header ('content-type: text/html; charset = gb2312 ');/*1. a download link (Save the code to the PHP file and run it, and a download link will be generated)
Python downloading JavaScript special effects in the library, pythonjavascript
This is a simple Python script. It is mainly used to download JavaScript special effect templates from the lazy library. The gevent third-party library is used in the script and needs to be installed first.
#! /Usr/bin/python #-*-coding: UTF-8-*-import urllib, OS, sysimport gevent, ref
I will give you a detailed analysis of photoshop software and share with you the tutorial on converting an image into a special stroke effect.Tutorial sharing:Step 1: first open the imageStep 2: Unlock the layer and copy a layer. Then, color the copied layer and press ctrl + shift + u. The following figure shows the effect;Step 3: execute the image-level command to enhance the contrast;Step 2: Copy the layer 0 and then copy the two layers;Comparison o
In order to enhance your understanding of webpage playback technology and stimulate your interest in webpage playback technology, we will first introduce some special effects of webpage playback technology, which are simple and practical, hope to help or inspire readers.Although it is a special effect, it is very easy for almost all people to get started, because
I have been making pages for two years. I have also done a lot of page effects, which are simple and complex. Today I will share a special effect on navigation scrolling to content.
We usually do navigation and scroll to the content through the anchor. After a click, we jump directly to the content without any scrolling effect, and there will be a "little tail" at the end of the url link ", today, I will in
HTML5 Canvas's Lucky prize disc special effects
Now good micro-credit micro-business or micro-letter public number have such a big turntable project, here to organize one, you can refer to the next.
This is a lucky jackpot based on jquery and HTML5 canvas. The Lucky big prize special effect supports the mobile end, which generates jackpot disks by dynamically c
Usually we insert the picture in Word, can only make simple edits, if need to treat the picture as a special shape, such as five angle, wave, face shape and so on, how to do? General friends are through Photoshop and other graphics software processing, and then copied to Word. In fact, you can use a very easy way to cut the inserted picture arbitrarily, and can add some special
The specified content cannot be selected through script control
The specified content cannot be selected through script control _ typical special effects
Other examples:
Jquery creates special daily check-in effects for forums or social media websites.
Effect: http://hovertree.com/texiao/jquery/50/Now many communities, shopping and other websites have set up the sign-in function, which can be used to gain experience, virtual currency, etc., to improve user stickiness and increase the number of views, is a good function. This article uses jQuery to create a simple punching e
This article describes how to use a table to output numbers between 1 and with special effects. If you are interested, refer to this document.
The Code is as follows:
ScriptVar cc = null;Function show (obj){Cc = obj. style. backgroundColor;Obj. style. backgroundColor = "Red ";}Function disshow (obj){Obj. style. backgroundColor = cc;}Script
Echo"
Echo"
(){ $(".block").stop();});11.Delay (duration,[queuename])//Set a delay to defer execution of items after the queue.$(‘#foo‘).slideUp(300).delay(800).fadeIn(400);12.Finish ([queue])//Stop the currently running animation, delete all queued animations, and complete all animations that match the element.$ ("#complete"). Click (function () {$ ("div"). Finish ();});13.jquery.fx.off//closes all animations on the page. jQuery.fx.off = true; $("input").click(function(){ $("div").toggle("slow"); });14
the number of rows for a labelThe rotation of the lableLabel.transform = cgaffinetransformmakerotation (0.2); Set the rotation angle of a label[Self.view Addsubview:label]; Load a label intoLabel beautification and Effects:Here use Fxlabel to achieve special effects, such as the "daily" word is used Fxlabel to achieve, but to join FXLbal.h and fxlabel.m two files, the specific code is as follows.Fxlabel *l
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.