Jump to content


Deretti's Content

There have been 3 items by Deretti (Search limited from 20/04/2023)


Ordernar por                Order  

#966961 Somar Id Layer E Campo

Posted by Deretti on 13/05/2009, 12:01 in Javascript / DOM / AJAX / ECMAScript

nao acredito que seja tao dificil assim :(



#966593 Somar Id Layer E Campo

Posted by Deretti on 09/05/2009, 08:30 in Javascript / DOM / AJAX / ECMAScript

dae povo!

para quem manja de JS é supimpa, mas como eu nao tenho estomago pra javas, nao tenho nem ideia.
tentei umas gambiarras mas nao deu

como voces podem ver no script abaixo, toda vez que clica no botao criar layer, ele cria um layer e dentro deste layer tem um campo.
o que precisava é todo novo layer, um valor era somado dentro do campo e na ID do layer.

aqui vai o bixão!

voces podem ver ele funcionando nesse link...

http://tunktech.net/tmp/crialayer.html

:huh:

<input type=button value="Create layer"
onClick="makeLayer(1,200,10,100,100,'red',1,1)">
</form>

<script>
function makeLayer(id,L,T,W,H,bgColor,visible,zIndex) {
if (document.getElementById) {

//esse pedaço comentado abaixo foi uma gambi que eu fiz, mas nao prestou pra nada :/
//if (document.getElementById(1)) {
// makeLayer('2',200,10,100,100,'red',1,1)
//return
//}

var ST= ''
+'; left:'+L
+'; top:'+T
+'; width:'+W
+'; height:'+H
+'; clip:rect(0,'+W+','+H+',0)'
+'; visibility:'+(null==visible || 1==visible ? 'visible':'hidden')
+(null==zIndex ? '' : '; z-index:'+zIndex)
+(null==bgColor ? '' : '; background-color:'+bgColor)

var LR= '<DIV id='+id+' style="'+ST+'"><input type=text value='+id+'></DIV>'

if (document.body) {
if (document.body.insertAdjacentHTML) document.body.insertAdjacentHTML("BeforeEnd",LR);
else if (document.createElement && document.body.appendChild) {
var newNode = document.createElement('div');
newNode.setAttribute('id',id);
newNode.setAttribute('style',ST);
document.body.appendChild(newNode);
} } } }
</script>

valeu! :)



#950419 Asp X Paradox

Posted by Deretti on 13/12/2008, 07:09 in ASP

:huh:

Grande Povo!

vasculhei a internet, e achei pedaços de codigos de strings para conectar num Paradox7 com ASP, mas nada ficou claro.
estou realmente confuso quanto esta conexao/driver. alguem tem alguma ideia como conectar ou conexao pronta que funcione?

ficarei muito grato.

grande abraço!




IPB Skin By Virteq