Loading...

Using JavaScript View

Photoshop layers to JS with clean and clear code becomes simple with Layer Kit – JS View. Translate your PSD layers to JS with advanced support for text, images and shapes.

Get Layer Kit Pro to add layer effects, imaging options and more with JS View.

Example Image Element

1
2
3
4
5
6
7
8
9
var index_button_bg = (navigator.userAgent.toLowerCase().indexOf("msie") != -1) ? new Image() : document.createElement("img");
index_button_bg.id = "index_button_bg";
index_button_bg.style.left = "927px";
index_button_bg.style.top = "1311px";
index_button_bg.style.width = "143px";
index_button_bg.style.height = "51px";
index_button_bg.src = "../skins/ek126_1001_wordpress_bluebox_theme/index_button_bg.png";
 
document.body.appendChild(index_button_bg);

Example Text Element

1
2
3
4
5
6
7
8
9
10
11
12
13
14
var page_title = document.createElement("div");
page_title.innerHTML = "Toronto’s award winning  <br/>creative agency";
page_title.style.fontWeight = "bold";
page_title.style.textAlign = "left";
page_title.id = "page_title";
page_title.style.left = "98px";
page_title.style.top = "131px";
page_title.style.width = "888px";
page_title.style.height = "188px";
page_title.style.fontFamily = "ArialMT, Arial, Helvetica, sans-serif";
page_title.style.fontSize = "72px";
page_title.style.color = "#FFFFFF";
 
document.body.appendChild(page_title);

Example Shape Element

1
2
3
4
5
6
7
8
9
var base = document.createElement("div");
base.id = "base";
base.style.left = "124px";
base.style.top = "1590px";
base.style.width = "422px";
base.style.height = "175px";
base.style.background = "#FFFFFF";
 
document.body.appendChild(base);

Pro Features

Using Layer Kit Pro, you can customize the JS View to include additional information with the PSD layer such as effects, advanced text rendering and more.

Example Layer Effects

1
2
3
4
5
6
7
8
9
10
11
12
13
var base = document.createElement("div");
base.id = "base";
base.style.left = "124px";
base.style.top = "1590px";
base.style.width = "422px";
base.style.height = "175px";
base.style.MozBoxShadow = "inset 2px 3px 3px 0px rgba(255,255,255,1)";
base.style.webkitBoxShadow = "inset 2px 3px 3px 0px rgba(255,255,255,1)";
base.style.boxShadow = "inset 2px 3px 3px 0px rgba(255,255,255,1)";
base.style.border = "3px solid #409EC1";
base.style.background = "#FFFFFF";
 
document.body.appendChild(base);

LOGIN NOW: You need to login so your progress is tracked with Online Training - click here.

Products For Android Professionals


android_pack

Android Pack

android_pack

Android Pack (6 Months)

android_pack

Android Pack

Need a custom solution?

Try our Shop!

Using the Plugin

Layer Support

Layer Tags

How To Guides

Optimization Tips

Help Us Improve


We aim to keep our content relevant with useful information, examples, samples and links. Tell us what you think!

I found the content:

Helpful
Confusing
Outdated
Broken Links
Bad Spelling
Too Short
Too Long

This page needs:

Nothing
Better Content
Links
Examples
Videos

Free Download


Responsive Webpage

A clean responsive webpage design for 3 target screens.

Start Your 14 Day Free Trial

New users get instant access to the 14 Day Free Trial with all features enabled, and Free Online Training. We guarantee your first conversion will 100% work - we work with you to ensure this, contact us or check our FAQs for assistance.

Connect With Us

Top
Lightning Storm version v17.0216.05 releasedLearn More