In terms of my second question, this is the solution (within Inkscape's methods):
if(InkWeb.getStyle('oElem', 'opacity') == '0') { do stuff; } else { do other stuff; }
Search found 3 matches
- Fri May 04, 2012 12:03 am
- Forum: Help with using Inkscape
- Topic: How to use Interactivity Javascript to bring object to top?
- Replies: 3
- Views: 1870
- Sat Apr 28, 2012 8:33 am
- Forum: Help with using Inkscape
- Topic: How to use Interactivity Javascript to bring object to top?
- Replies: 3
- Views: 1870
Re: How to use Interactivity Javascript to bring object to t
Another thing I was trying to do was reference an element as an if statement but I can't figure out the proper syntax. This is what I ended up with: if(fullTextCheck.getAttribute('opacity')=='1') { do stuff } else {do other stuff} Any recommendations on how to change the getAttribute command to actu...
- Sat Apr 28, 2012 2:55 am
- Forum: Help with using Inkscape
- Topic: How to use Interactivity Javascript to bring object to top?
- Replies: 3
- Views: 1870
How to use Interactivity Javascript to bring object to top?
Hey everyone, I was wondering if anyone knew of the code command necessary to make an object in Inskcape (not a layer, but an object within the layer) come to the top above other objects. I assume the code would look something like this: onclick: InkWeb.setAtt({el:['Rectangle'], att:'position', val:...