Tree menu JS has many features on the Internet. I wrote a tree menu class myself. I think it is not bad. We share and discuss it publicly. We are the happiest to make progress with everyone !!
/* Kuomart.com _ mykuomart, create by ybcola (AT) 163.com, 2006-7-2
Last modified 2006-7-2, ybcola@163.com */
Function dtree (){
This. menugroupclose = "images/treeview_close.gif"; // close the menu icon
This. menugroupopen = "images/treeview_open.gif"; // open the menu icon
This. menuitemclass = ""; // me
interface, but must be the first parameter of shutdownShutdown-l log out of the current userShutdown-r shutdown and restartShutdown-s-t time setting shutdown countdownShutdown-h Sleep (5) modify the name Dialog at the top of the dialog window;Dialog. setWindowTitle ("New title"); // enter what to changeDialog. show (); (6) modify the Dialog window icon and application icon
First, prepare an ICO icon, for example, app.
If you use IE7 or a browser with multiple tabs, you will surely find the personal icon at the front of the tab. How can this be done?
I have never quite understood it. By chance, my colleague told me several practices and posted them to share with you.
1.Put an ico icon directly to the root directory of your website and name it favicon. ICO. Favicon. ICO s
1. Change the application icon:A. Copy your ICO to the res folder, delete mytest. ICO, rename your *. ICO to mytest. ICO, and compile and run
The icon of the corresponding mytest.exe is changed.B. Code method -- copy the following code snippet to bool cmytestapp: initinstance () {...} under cmytest. cpp (){...}(Before
WinformNotifyiconUse (similar to QQMessage prompt)
Overview: In CTIIn the process of calling, the corresponding customer information needs to pop up on the client, so a tray of client program is required to run, when there is a call, the staff will be prompted through the flash of the tray icon (of course, you can also add some sound effects. Here I use policyiconThe main steps are as follows:
Step 1: Find policyicon in the toolboxControl, drag it into the design layout,
Step 2: Set the corr
I believe you have bought some CDs, put the CDS into the system, is it possible to see a very beautiful icon, today to tell you how this is done out, but today is not to give you to the CD to do the demo, I believe that we commonly used a U disk, so we use a U disk to demonstrate to everyone to see, Let's take a look at how to get it.
What we need to know is what format the icon is used for, the icon is in ICO format, then how do we have these icons,
What we need to know is what format the icon is used for, the icon is in ICO format, then how do we have these icons, there are two methods for everyone to reference, you can search the Internet to find their favorite, you can use the system software from the, put it there, open the Start menu, and then select the search options.
In the Open Search Results window, if you want to search for a file or folder named *.
To give you illustrator software users to detailed analysis to share the drawing vector fine icon.
Share list:
The software used in the tutorial is mainly Adobe Illustrator cs/adobe photoshop/axialis icon-workshop. We use Adobe Illustrator CS for icon Design, and post-processing in Photoshop, and finally output to an. ico format icon file with IconWorkshop.
1. Open Adobe Illustrator CS, select the Rounded Rectangle
For the cutting of the string of the usual use may not be particularly many, and the relatively thin, so self-self-examination. Prepared
Since all before a demo test, if there is a wrong, please understand. Some of the remaining properties find time to continue adding.
1. Function: Split ()
Function: To store a string partition into an array using a specified delimiter
Example: str= "Jpg|bmp|gif|ico|png"; Arr=str.split ("|");Arr is an array that c
Use substring () or slice ()
Function: Split ()Function: To store a string partition into an array using a specified delimiterExample:
Copy Code code as follows:
Str= "Jpg|bmp|gif|ico|png";
Arr=thestring.split ("|");
Arr is an array that contains the character values "JPG", "BMP", "GIF", "ico", and "PNG"
Function: John ()
Function: Merges an array into a string using the separator
an array using a specified delimiterExample:
The code is as follows
Copy Code
Str= "Jpg|bmp|gif|ico|png";Arr=thestring.split ("|");Arr is an array that contains the character values "JPG", "BMP", "GIF", "ico", and "PNG"
Function: John ()Function: Merges an array into a string using the separator of your choiceExample:
The code is as follows
Copy Code
Use of Cursor:url ()Today in the project, you want to use the custom mouse style, format:Css:{cursor:url (' Picture of Absolute path (format: Cur,ico) '),-moz-zoom-out;} FF belowCss:{cursor:url (' absolute path '), auto;} Ie,ff,chrome Browser is availableThe front URL is the custom mouse format, the absolute path address of the image, the following parameters are the CSS standard cursor style, (ie can not be required below)The format of the icon accor
, and so on
Filename1 =; Provide a file of the code to be executed in the first drop-down menu item, and so on
Example I-2-(1) _ 2.1 script type button
Reference[General] wlgjx.comName = lastmodifiedAuthor = bloodchenVersion = 1.0Moduletype = scriptFilenameappslastmodified.htmComments = see Last modified Date of current pageType = m2plugin_buttonHoticon = hot. ICOToolkit wlgjx.com
Icon = cold. ICO
Example I-2-(1) _ 2.2 Script Type sidebar
Reference[Ge
comboBox2_DrawItem (object sender, DrawItemEventArgs e) {// obtain the graphic surface Graphics g = e on which to draw items. graphics; // obtain the rectangle System that represents the boundary of the drawn item. drawing. rectangle rect = e. bounds; // defines the icon Image to be drawn to the control. Image ico = Image. fromFile ("head.png"); // defines the font object System. drawing. font font = new System. drawing. font (new FontFamily (""), 12
Http://www.csdn.net/Develop/Read_Article.asp? Id = 20312
VB given by Chapter E of MenciusCodeNow translate the code into C # for reference by people who are used to C #.Note that the image must be in ICO format. Otherwise, the tray may not be displayed.
Using system;
Namespace ubiserialscontroller{/// /// Summary of class1./// Public class class1{Static system. serviceprocess. servicecontroller SC;Static system. Windows. Forms. policyicon Ni;Sta
Combobox2_drawitem ( Object Sender, drawitemeventargs E){ // Obtain the graphic surface on which you want to draw items Graphics g = E. graphics; // Obtains the rectangle representing the boundary of the drawn item. System. Drawing. Rectangle rect = E. bounds; // Define the icon image to be drawn to the control Image ICO = Image. fromfile ( " Head.png " ); // Define font objects System. Drawing. Font font = New Sys
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.