Transparent window using JavaScript and CSS

Source: Internet
Author: User
CSS Code : <Style type = "text/CSS">. transparent {filter: alpha (opacity = 90); background-color: green; display: none; width: 170; Height: 100; position: absolute; color: White; Border: 1 green solid ;}</style> JavaScript code: <script language = "JavaScript"> function show () {x = event. clientx + document. body. scrollleft; y = event. clienty + document. body. scrolltop + 35; Popup. style. display = "Block"; Popup. style. left = x; Popup. style. top = y;} function hide () {Popup. style. display = "NONE" ;}</SCRIPT> Page code: <body bgcolor = "black" text = "white"> <a href = "" onmouseover = "show () "onmousemove =" show () "onmouseout =" Hide () "> move the mouse over here </a> <Div id =" popup "class =" Transparent "> <Div style =" background-color: #003366 "> title goes here </div> <div> descripting title here </div> </body> other effects: 1. change the line Filter: glow (opacity =90); To Filter: progid: DXImageTransform: Microsoft. Glow (color = yellow, strength =5); 2. or change the lineFilter: glow (opacity =90);ToFilter: progid: DXImageTransform: Microsoft. dropshadow (color = yellow, strength =5);
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.