Finally done
I have added the argument 'background-image:URL(empty.gif)' to each call to
the function CSS in the ScrollBar and ScrollButtonImage functions....
specified in the <other> argument through the CSS function definition:
css(id,left,top,width,height,color,vis,z,other)
thanks for your help
-----Mensaje original-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]En nombre de Miguel
Jiménez
Enviado el: martes 6 de febrero de 2001 11:41
Para: [EMAIL PROTECTED]
Asunto: [Dynapi-Help] Scroll2 semirepaired in IE5.5 (can anyone help
with the rest)
Hi...
i have repaired the buttons of the scrollbar by adding the button image to
the event layer... and it works perfectly in both NS and IE, included IE5.5
that used to have problems...
but i am not able to repair the scrolling bar, the one you drag ....
this is the piece of code... (where should i insert the empty.gif or
something)
function ScrollBarBuild() {
with(this) {
var bg=bgImg? 'background-image:URL('+bgImg+');
layer-background-image:URL('+bgImg+'); repeat:yes; ':''
var box=boxImg? '<img src="'+boxImg+'" width='+boxW+' height='+boxH+'>' :
''
var shade=shadeImg? '<div id="'+name+'Shade"><img
src="'+shadeImg+'"></div>\n' : ''
this.css=css(name,x,y,w,h,bgColor,null,null,bg)+
css(name+'Box',0,0,boxW,boxH,boxColor,boxvis)+
css(name+'C',0,0,w,h)
if (shadeImg) this.css+=css(name+'Shade',0,0)
this.div='<div id="'+name+'">'+shade+'<div
id="'+name+'Box">'+box+'</div><div id="'+name+'C"><img
src="empty.gif"></div></div>\n'
// this.div='<div id="'+name+'">'+shade+'<div
id="'+name+'Box">'+box+'</div><div id="'+name+'C"></div></div>\n'
}
}
function ScrollBarActivate() {
this.lyr=new DynLayer(this.name)
this.boxlyr=new DynLayer(this.name+'Box')
this.boxlyr.slideInit()
this.boxlyr.onSlide=new Function(this.obj+'.onScroll()')
this.lyrc=new DynLayer(this.name+'C')
this.lyrc.elm.scrollbar=this.obj
if (is.ns) this.lyrc.elm.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE |
Event.MOUSEUP)
this.lyrc.elm.onmousedown=ScrollBarMouseSDown
this.lyrc.elm.onmousemove=ScrollBarMouseSMove
this.lyrc.elm.onmouseup=ScrollBarMouseSUp
this.lyrc.elm.onmouseover=new Function(this.obj+'.active=true')
this.lyrc.elm.onmouseout=new Function(this.obj+'.active=false')
}
function ScrollBarMouseSDown(e)
{eval(this.scrollbar+'.mousedown('+(is.ns?e.layerX:event.offsetX)+','+(is.ns
?e.layerY:event.offsetY)+')');return false}
function ScrollBarMouseSMove(e)
{eval(this.scrollbar+'.mousemove('+(is.ns?e.layerX:event.offsetX)+','+(is.ns
?e.layerY:event.offsetY)+')');return false}
function ScrollBarMouseSUp(e) {eval(this.scrollbar+'.mouseup()');return
false}
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help