Jump to content

adrianv

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by adrianv

  1. Hi all,i need to write the output html source of an ASP file into a div, that i can do using JS.but i first need to get the html output source and save it into a variable...any ideas on how can i pull that off?
  2. I had enough with that script....i found a more simple script that has a delay on show embedded into it...nickrigby.com Drop-Down Menu
  3. 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
  4. 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.
  5. the nested quotes are fine, if i use " then i get the "undetemined string" error... because of the onMouseover quotes.here is the full code i use:chrome drop down menu from dynamic drive
  6. 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....
  7. no, the function receives 3 parameters: 1) this 2) event 3) the menu nameas i said, it works when outside the setTimeout procedure.and just to make sure i tested your suggestion, didn't work
  8. 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
  9. 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....
  10. i have changed the "charset" to "Charset" , still no go....
  11. 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?
  12. 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: 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...