@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> helpme
<0> <input name="" type="button"> (href ...)
<0> link
<1> anyone wanna view some weird character encoded escape() to help me determine what it is
<2> hi
<2> what's the right way to do: document[imgName].onmouseout = "imgOff('"+imgName+"')"; because it doesnt work this way..:(
<3> what on earth is imgOff? why is it in quotes?
<2> it is a function
<2> how should it be ?
<3> you dont write functions inside quotes
<3> imgOff(imgName);
<2> doesnt work that way :(
<3> whats imgName?
<2> can i paste about 8 lines ?
<3> use the website
<3> http://pastebin.com/



<3> paste it there
<2> http://pastebin.com/657291
<2> so: document[imgName].onmouseout = imgOn(imgName); and document[imgName].onmouseout = imgOff(imgName); do not work
<3> what is imgName?
<2> the name of some <img>
<2> <image>
<3> name? whats name? example?
<2> <img name='img01'>
<2> and so on til img17
<3> ok first try this. give the image some Id. and then :
<3> document.getElementById(imgId).onmouseout = imgOff(imgId);
<3> or, im not sure of this, but might work: docuement.getElementByNames(imgName).onmouseover....etc etc
<2> http://pastebin.com/657315 could someone explain why: document[img].onmouseout = function(){imageOff(img)}; doesnt do anything really please ?
<4> morning all. how to play sound with javascript on FireFox. thank you.
<3> pile em up
<5> Hello
<5> Someone could tell me how could i find if an <ul> </ul> contain <li> ?
<3> hmm iterating through the DOM nodes
<6> SufiBlade: DOM = Document Object Model
<6> the XML uses it
<3> and js can use xml
<7> Isabel23: You got a msg script virus on your mIRC - get rid of it!
<8> Kara25 got a DDC send file virus too. i kick and ban hime
<9> If I have the name of a form element in a variable, is there a difference between how I can reference the element in FF and IE?
<10> no
<9> document.form1.elements[name] works in FF, but not IE
<10> yes, it does.
<10> validate your html
<9> Someone please ban Isabel123
<10> and 'name' is a poor choice for a variable name
<9> What? She's a frickin porn bot
<10> how about you leave the ops duties to us?
<9> Ok, fine. Sorry
<10> k
<9> anyway, when I try to reference it, it comes back as undefined
<10> validate your html
<10> http://validator.w3.org/
<10> looks like you are right
<8> I kick one that send virus around this morning
<9> is starting an element name with an underscore that big a deal?
<8> if it didn't work, it means that you not suppose to do it.
<10> should work fine
<9> Ok. I fixed all the errors except for the underscores in the IDs, but when I try to refer to the form elements, it is still coming back as undefined
<9> and those are the ids of divs, not the form elements
<10> did you validate your markup?
<9> Yes
<10> then you have a logic error or typo
<10> the base technology works fine
<10> put it up on nomorepasting.com
<9> http://nomorepasting.com/paste.php?pasteID=60779
<9> the error is on line 17
<9> It works fine in FF
<10> try using nm or elementName instead of name
<9> I'll try that, but by the time it gets to this function, it has already gone through another function that does the same thing.
<9> still doesn't work
<9> I changed it to elName
<9> Wait a minute.
<9> These form elements are being created dynamically. Could that have something to do with it?
<10> if they are not attached to the form correctly, absolutely
<9> How do I attach them to the form?
<8> and they name may still screw up in IE



<8> i think i run into that with id start with _
<9> Torgo, how do I attach the form elements to the form
<9> I fixed the underscores and put them at the end of the IDs
<11> Generally, with appendChild()
<9> ok. I have to appendChild the form element to both the form AND the html element that positions it correctly?
<6> Hello MarkP, Pilum
<6> Hello ht311
<8> hi
<6> how are you ?
<12> How do i make my website replace example.gif by example2.gif on a mouse rollover?
<12> <-newbie
<11> MarkP: No. Not as long as the positioning element is inside the form in the html structure.
<11> enigmaa: document.image['imgname'].src='example2.gif';
<6> lol @ enigmaa
<6> I like this qoute
<6> <- newbie
<6> <- object
<12> Pilum let me try that
<13> Who has a javascript that i can put him on a website and when somebody tries to close the site , the javascript to make dupes ? please
<6> Hello mogul
<13> hy
<12> Pilum i can't get it to work
<11> "the javascript to make dupes"? Rephrase please.
<11> enigmaa: Url?
<14> I have a question...
<11> Yes?
<14> is there a way to get the text part of an html document without the tags?
<14> var timmy = parent.window.getBrowser().selectedBrowser.contentWindow.document.getElementsByTagName("P");
<14> alert(timmy.item(0).innerHTML);
<14> that is what i am using to get the text of a paragraph in a website..
<13> oke
<11> Eww.
<11> What's that supposed to be? Jscript .NET?
<14> no javascript in the context of mozillafirefox
<14> erm I am new to this..
<14> what i need to do is to get the whole text of the page i am looking at into a string variable..
<14> without the tags and such
<11> alert(timmy[0].innerHTML) for starters
<12> Pilum i noticed you the website
<11> Too bad I ignore those then.
<12> a /msg perhaps ?
<14> okay, granted.. but it is returning the text with the tags .. is there a way of getting tagless text or do I have to remove the tags using some function.
<11> You want _all_ text on the entire site?
<11> enigmaa: No.
<14> yes with no tags, just the words
<12> Pilum ok, then, could you please explain me what's wrong with this:
<12> <td width="62" align="left" valign="top" background="file:///C|/Documents and Settings/Administrator/My Documents/My Webs/adastrarocket/images/menu-background.gif"><a href="./index.html" onmouseover="document.home-menu.src='images/home2-menu.gif'"
<12> onmouseout="document.home-menu.src='home-menu.gif'"><img src="file:///C|/Documents and Settings/Administrator/My Documents/My Webs/adastrarocket/images/home-menu.gif" name="home-menu" width="62" height="45" border="0" /></a></td>
<11> Loop through the entire DOM tree and check for text nodes. Or do a regexp search to filter out the tags.
<14> are htmlparagraphelements part of the text nodes?
<11> No.
<11> They usually contain text nodes, but they aren't text nodes.
<14> ok last question then, so will text found in paragraphelements be captured aswell (even if they are not declared as text nodes?))
<11> enigmaa: Firstly, use a pastebin next time. Second, don't use file:/// for src, and thirdly, you're not doing what I told you to.
<11> mrtony21: Not familiar with the DOM are you?
<14> no today im looking at it for the first time
<14> i am doing a context search extention for firefox
<14> all i wanted to know was if text can be retrieved cleanely and with no tags so i can research further how to do it (knowing that it is possible0
<11> You should start your swimming lessons in the shallow end of the pool. You're diving in head-first from the 15m diving board into rocky seas.
<14> :) its true..
<14> 10x anyways
<14> i will do abit more research
<11> http://www.mozilla.org/docs/dom/
<11> Similar at http://msdn.microsoft.com/
<14> yes thats what i am looking at
<14> if i understood correctly then
<14> if i traverse the DOM tree for the textnodes
<14> i still wont capture all the words in the documents because
<14> certain text can be in Paragraph tags without the text nodes explicitly declared
<14> or text area for that matter
<12> Pilum what am I not doing, that you told me?
<12> i removed all of the file:/// stuff
<12> but, i still cant get to change the images on rollover


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #javascript
or
Go to some related logs:

#mirc
burger 423kcal
nombay
#php
Jenny Darba
#AllNiteCafe
pilonadil cyst
klibido SIGSEGV
#linux
#php



Home  |  disclaimer  |  contact  |  submit quotes