This article for your collection of three about JS control display and hide CSS Tutorial div Code Oh, if you are doing show with hidden layer effect, here are jquery and JS control method Oh.
function Showtips Tutorial (tips, height, time) { var windowwidth = document.documentelement.clientwidth; var tipsdiv = ' <div class= ' tipsclass ' > ' + tips + ' </div> ';
$ (' body '). Append (Tipsdiv); $ (' Div.tipsclass '). CSS ({ ' Top ': Height + ' px ', ' Left ': (WINDOWWIDTH/2)-(Tips.length * 13/2) + ' px ', ' Position ': ' Differs ', ' Padding ': ' 3px 5px ', ' Background ': ' #8fbc8f ', ' Font ': + ' px ', ' Margin ': ' 0 auto ', ' Text-align ': ' Center ', ' Width ': ' Auto ', ' Color ': ' #fff ', ' Opacity ': ' 0.8 ' ). Show (); settimeout (function () {$ (' Div.tipsclass '). fadeout ();}, (Time * 1000)); } Method Two
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.