![]() | ||||||||||
|
||||||||||
The following "10 steps" instruction will guide you step by step through the CodeThatXPBar configuration process. | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
For free version (STD) download use this link. If you'd like to buy full version (PRO) use this link. Please bear in mind that CodeThat scripts come in two editions STANDARD and PRO. Editions differ by the features set and license type. Standard version is given for free and comes with the inscription representing our company's name. Upon registration you will get rid of that text.
| ||||||||||
![]() | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
Your file may look as following: <HTML> <HEAD> <link href="common.css" rel="stylesheet" type="text/css"> <script language="javascript1.2" src="codethatsdk.js"></script> <script language="javascript1.2" src="codethatxpbarstd.js"></script> </HEAD> <BODY> <p> HELLO WORD! </BODY> </HTML> | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
For this purpose you can both create separate config *.js file or write the config construction right to your *.html file. Here we will view second variant. To describe new XPBar create an object with following structure: <script language="javascript1.2"> <!-- var BarDef = { "style" : {} "itemover" : {}, "position" : {}, "scroller" : {}, "defaction" : {}, "items" : [ ] }; // --> </script> | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
var BarDef = { "style" : { "css" :"bartitle", "align":"center", "bgcolor":"#6C86DC", "size" :[160,25], "shadow":{"color":"#C0C0C0","width":1}, "border":{"color":"#000000","width":1}, "imgspace":5, "imgendon": { "src":"img/arr_down.gif", "width":24, "height":24}, "imgendoff":{ "src":"img/arr_up.gif", "width":24, "height":24}, "itemoffset":{ "x":5, "y":10 }, "fixheight":200, "scroller":{ "height":25, "bgimg":"", "color":"#ffffff", "up":"img/scroller_up.gif", "down":"img/scroller_down.gif", "step":5, "time":30, "len":60 } }, "itemover" : {"css":"bartitle", "size" :[160,25], "imgendon": { "src":"img/arr_down_over.gif", "width":24, "height":24}, "imgendoff":{ "src":"img/arr_up_over.gif", "width":24, "height":24}, "bgimg":"img/title_bg_big.gif" }, "itemon" : { "bgcolor":"#265BCC", "color":"#ffffff" }, "position": { "absolute": true, "pos":[10,10] } } Hint - if parameters description isn't clearly understanding please have a look to CodeThatXPBar User Manual | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
"items" :[ { "text" : " ", // text to be written inside "style" : {}, // item style in normal state "styleover" : {}, // item style in "mouse over" state "styleon" : {}, // for bool items specifies the style when in "on" state "menu" : {}, // submenu "action" : {}, "position" : {}, "type" : " " // special item type ("bool"/"separator"), // for hierarchical menu only } ] For our example items's definition looks like this: "items" : [ { "text":"Folders" , "style": { "align":"center", "bgimg":"img/title_bg_big.gif" } }, { "text":"Other Places" , "style": { "align":"center", "bgimg":"img/title_bg_big.gif" } }, { "text":"Details" , "style": { "align":"center", "bgimg":"img/title_bg_big.gif" } } ] | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
| ||||||||||
![]() | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
"items" : [ { "text":"Folders" , "style": { "align":"center", "bgimg":"img/title_bg_big.gif" }, "menu": { "style": { "size":[150, 22], "bgcolor":"#D6DFF7", "border":{"color":"#ffffff","width":1}, "bgimg":"", "itemoffset":{ "x":5, "y":2 } }, "itemover" : { "imgendon": {}, "imgendoff":{}, "bgimg":"", "size":[150, 22] }, "items" : [ {"text": "Search", "style" : {"imgitem":{ "src":"img/folder_search.gif", "width":16, "height":16}} }, {"text": "Options", "style" : {"imgitem":{ "src":"img/folder_options.gif", "width":16, "height":16}} }, {"text": "Download", "style" : {"imgitem":{ "src":"img/folder_download.gif", "width":16, "height":16}} } ] } }, { "text":"Other Places" , "style": { "align":"center", "bgimg":"img/title_bg_big.gif" }, "menu": { "style": { "size":[150,22], "bgcolor":"#D6DFF7", "border":{"color":"#ffffff","width":1}, "bgimg":"", "itemoffset":{ "x":5, "y":2 } }, "itemover" : { "imgendon": {}, "imgendoff":{}, "bgimg":"", "size":[150, 22] }, "items" : [ {"text": "My Computer", "style" : {"imgitem":{ "src":"img/computer.gif", "width":16, "height":16}} }, {"text": "Printer", "style" : {"imgitem":{ "src":"img/print.gif", "width":16, "height":16}} } ] } }, { "text":"Details" , "style": { "align":"center", "bgimg":"img/title_bg_big.gif" }, "menu": { "style": { "size":[150,50], "bgcolor":"#D6DFF7", "border":{"color":"#ffffff","width":1}, "bgimg":"", "align":"center", "itemoffset":{ "x":5, "y":1 } }, "itemover" : { "imgendon": {}, "imgendoff":{}, "bgimg":"" }, "items": [ { "text":"<p><b>Copyright</b><br> <a href='http://www.codethat.com'> www.CodeThat.com</a>"} ] } } ] | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
<HEAD> <link href="/common_codethat.css" rel="stylesheet" type="text/css"> <script language="javascript1.2" src="codethatsdk.js"></script> <script language="javascript1.2" src="codethatxpbarstd.js"></script> <script language="javascript1.2"> <!-- var BarDef = { "style" : { "css" :"bartitle", "align":"center", "bgcolor":"#6C86DC", "size" :[160,25], "shadow":{"color":"#C0C0C0","width":1}, "border":{"color":"#000000","width":1}, "imgspace":5, "imgendon": { "src":"img/arr_down.gif", "width":24, "height":24}, "imgendoff":{ "src":"img/arr_up.gif", "width":24, "height":24}, "itemoffset":{ "x":5, "y":10 }, "fixheight":200, "scroller":{ "height":25, "bgimg":"", "color":"#ffffff", "up":"img/scroller_up.gif", "down":"img/scroller_down.gif", "step":5, "time":30, "len":60 } }, "itemover" : {"css":"bartitle", "size" :[160,25], "imgendon": { "src":"img/arr_down_over.gif", "width":24, "height":24}, "imgendoff":{ "src":"img/arr_up_over.gif", "width":24, "height":24}, "bgimg":"img/title_bg_big.gif" }, "itemon" : { "bgcolor":"#265BCC", "color":"#ffffff" }, "position": { "absolute": true, "pos":[10,10] }, "items" : [ { "text":"Folders" , "style": { "align":"center", "bgimg":"img/title_bg_big.gif" }, "menu": { "style": { "size":[150, 22], "bgcolor":"#D6DFF7", "border":{"color":"#ffffff","width":1}, "bgimg":"", "itemoffset":{ "x":5, "y":2 } }, "itemover" : { "imgendon": {}, "imgendoff":{}, "bgimg":"", "size":[150, 22] }, "items" : [ {"text": "Search", "style" : {"imgitem":{ "src":"img/folder_search.gif", "width":16, "height":16}} }, {"text": "Options", "style" : {"imgitem":{ "src":"img/folder_options.gif", "width":16, "height":16}} }, {"text": "Download", "style" : {"imgitem":{ "src":"img/folder_download.gif", "width":16, "height":16}} } ] } }, { "text":"Other Places" , "style": { "align":"center", "bgimg":"img/title_bg_big.gif" }, "menu": { "style": { "size":[150,22], "bgcolor":"#D6DFF7", "border":{"color":"#ffffff","width":1}, "bgimg":"", "itemoffset":{ "x":5, "y":2 } }, "itemover" : { "imgendon": {}, "imgendoff":{}, "bgimg":"", "size":[150, 22] }, "items" : [ {"text": "My Computer", "style" : {"imgitem":{ "src":"img/computer.gif", "width":16, "height":16}} }, {"text": "Printer", "style" : {"imgitem":{ "src":"img/print.gif", "width":16, "height":16}} } ] } }, { "text":"Details" , "style": { "align":"center", "bgimg":"img/title_bg_big.gif" }, "menu": { "style": { "size":[150,50], "bgcolor":"#D6DFF7", "border":{"color":"#ffffff","width":1}, "bgimg":"", "align":"center", "itemoffset":{ "x":5, "y":1 } }, "itemover" : { "imgendon": {}, "imgendoff":{}, "bgimg":"" }, "items": [ { "text":"<p><b>Copyright</b><br> <a href='http://www.codethat.com'> www.CodeThat.com</a>"} ] } } ] }; var bar1 = new CXPBar(BarDef, 'bar1'); // --> </script> </head> <body bgcolor="#ffffff"> <script> bar1.create(); bar1.run(); </script> </body> </html> | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
<html> <head> <title>Test</title> <script language="javascript1.2" src="codethatsdk.js"></script> <script language="javascript1.2" src="codethatxpbarstd.js"></script> <script language="javascript1.2" src="bar1.js"></script> <script language="Javascript1.2"> <!-- var bar1 = new CXPBar(MenuDef, 'bar1'); //--> </script> <style type=text/css> .box { font-size:14px; } .boxover { font-size:15px; } </style> </head> <body> <br> <br> <br> <br> <script> bar1.create(); bar1.run(); </script> </body> </html> Hint - for using CodeThat Scripts you aren't limited only by html files. For example, you can build it in the *.php files. We've made it at this site :) | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
To make your life easier we do plan to supply you with on and off line XPBar builders in the nearest time. | ||||||||||
![]() | ||||||||||
![]() | ||||||||||
![]() |