adrianv
-
Posts
13 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by adrianv
-
-
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
-
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
-
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.
-
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 driveTry this, i think the nested quotes might have been incorrectonMouseover="setTimeout('cssdropdown.dropit(this,event,\"dropmenuArt\")',400)">urltext</a>
If it doesn't work post link or full code.
-
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....The setTimeout function can not handle executing a function as one of its parameters if the function has arguments. That's probably your problem. -
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 workshould be this.event not this,eventchange , to . -
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
-
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....
-
----->hi i think the charest of english language is 1256 not 1255 try 1256I'm adding this two lines to my CDOSYS object code in order to send emails in hebrew: -
i have changed the "charset" to "Charset" , still no go....
In your first example you have "Charset" and "charset". Try changing the capitalization. -
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?
-
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:The requested body part was not found in this message.msg.HTMLBodyPart.charset = "Windows-1255"
when i drop this line the email is sent , subject is in hebrew, body in gibrish...any ideas?
read the output source of an html file?
in ASP
Posted
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?