Jump to content

adrianv

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by adrianv

  1. the minute i hit the replay to say that i have made some progress i sow your post!so i tried it, but it didn't work.my changes are:

    dropit:function(obj, e, dropmenuID){	if (this.dropmenuobj!=null) //hide previous menu	this.dropmenuobj.style.visibility="hidden"	this.clearhidemenu()	if (this.ie||this.firefox){  obj.onmouseout=function(){cssdropdown.delayhidemenu()}  obj.onmouseover=function(){cssdropdown.delayshowmenu()} // <-----NEW CODE 	 this.dropmenuobj=document.getElementById(dropmenuID) 	 this.dropmenuobj.onmouseover=function(){cssdropdown.clearhidemenu()} 	 this.dropmenuobj.onmouseout=function(){cssdropdown.dynamichide(this.ze)} 	 this.dropmenuobj.onclick=function(){cssdropdown.delayhidemenu()} 	 this.showhide(this.dropmenuobj.style, e, "visible", "hidden") 	 this.dropmenuobj.x=this.getposOffset(obj, "left") 	 this.dropmenuobj.y=this.getposOffset(obj, "top") 	 this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj, "rightedge")+"px" 	 this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+1+"px"	}},------------------dynamicshow:function(e){var evtobj=window.event? window.event : eif (this.ie&&!this.dropmenuobj.contains(evtobj.toElement))this.delayshowmenu()else if (this.firefox&&e.currentTarget!= evtobj.relatedTarget&& !this.contains_firefox(evtobj.currentTarget, evtobj.relatedTarget))this.delayshowmenu()},delayshowmenu:function(){this.delayshow=setTimeout("cssdropdown.dropmenuobj.style.visibility='visible'",this.showdelay)},clearshowmenu:function(){if (this.delayshow!="undefined")clearTimeout(this.delayshow)}

    that almost does the job! it delays the showmenu but after the delay the menu appears anyway, and also after a few show hide it gets stuck...here is an example link: My Webpagehere

  2. Thanks Nakor for your quick response.i tried it without any quotes, still no luck.I also tried a few days ago to convert the delayhidemenu() function to a delayshowmwnu() but i keep getting errors. could you please tell me where exactly to use the delayshowmwnu() with the correct syntax?i mostly write code for server side and i'm practically clueless as to client side script so i would realy appriciate the help guys.

  3. The setTimeout function can not handle executing a function as one of its parameters if the function has arguments. That's probably your problem. :)

    I don't think that is the problem, i see it in a lot of places.I can't seem to find a free css drop down menu that have a delay before it opens, they all have a delay after though.... :)
  4. I get an "Object is required" error in:

    <a href="url" onMouseover="setTimeout('cssdropdown.dropit(this,event,\'dropmenuArt\')',400)">urltext</a>

    the code works great outside the setTimeout

    onMouseover="cssdropdown.dropit(this,event,'dropmenuArt')"

    although it seams that the setTimeout is also working because i get the error only after the 400ms delay...it might be a syntax problem...please advise

  5. ok, found the problem, i sometimes used HTML formated emails and sometimes plain text formate emails.the line: msg.HTMLBodyPart.charset = "Windows-1255"must be writen only when using HTML formated emails....

  6. I moved the line: msg.HTMLBodyPart.charset = "Windows-1255"to after the line msg.HTMLBody = strEmailBodyMessageit resolved the error message but i still get gibrish in the body messageany thoughts?

  7. I'm adding this two lines to my CDOSYS object code in order to send emails in hebrew:

    msg.BodyPart.Charset = "windows-1255"msg.HTMLBodyPart.charset = "Windows-1255"

    the thing is that i get this error:

    The requested body part was not found in this message.
    in line:
    msg.HTMLBodyPart.charset = "Windows-1255"

    when i drop this line the email is sent , subject is in hebrew, body in gibrish...any ideas?

×
×
  • Create New...