Jump to content

erezes

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by erezes

  1. $("figure").html('<img src="'+trg.src+'"'+jg_gallery_init("#gallery")+' />'); function jg_gallery_init (jg_s){ //creating structure$(jg_s).html('<div class="jg_controls"><div class="jg_c_stop"></div><div class="jg_c_play"></div><div class="jg_c_prev"></div><div class="jg_c_next"></div></div><div class="jg_image"></div><div class="jg_text"></div></div></div>');//showing text info $(jg_s).css("margin-left","auto"); $(jg_s).css("margin-right","auto"); getwdth = confDoc.getElementsByTagName("maxBannerWidth")[0].childNodes[0].nodeValue;getheight = confDoc.getElementsByTagName("maxBannerHeight")[0].childNodes[0].nodeValue$(jg_s+" .jg_image").width(getwdth);$(jg_s+" .jg_image" ).height(getheight); tgetwdth = confDoc.getElementsByTagName("thumbsScrollViewAreaWidth")[0].childNodes[0].nodeValue;tgetheight = confDoc.getElementsByTagName("thumbsScrollViewAreaHeight")[0].childNodes[0].nodeValue;$(jg_s).width(tgetwdth);$(jg_s).height(tgetheight); $("figure").mouseover(function(){ $(jg_s+" div.txt"+window[jg_s+ "_current_slide"]).fadeIn("slow")}); I tried many ways to combine the "figure" and jg_s like $("figure"+jg_s).mouseover(function(){So that will both together .mouseover , it does not go together :-( idea.

  2. for (i=0; confDoc.getElementsByTagName("imgsub").hasChildNodes(); i++){ w = confDoc.getElementsByTagName("imgsub");tmp_title = w.getElementsByTagName("pic_title")[0].childNodes[0].nodeValue; { I want to cancel the loop,only of [0], how I write it. i try and try ....... Thanks helpers

  3. I have the mouse function ON/OFF IMAGE (TOOLTIP) I want to add another FUNCTION text box function in JS + CSS this my tooltip fun that work function tooltip(arg){ if (_tooltipX=="off") return; if (arg==false){_tooltipX=false;_tooltip.css("display","none"); } else {_tooltip.html(arg+"<b></b>");_tooltipX=(_tooltip.width()>>1)+7;_tooltip.css("display","block"); }}I want to add another FUNCTION text box function in JS + CSS

  4. I have the mouse function ON/OFF IMAGE (TOOLTIP)I want to add another FUNCTION text box function in JS + CSSthis my tooltip fun that work function tooltip(arg){if (_tooltipX=="off") return;if (arg==false){_tooltipX=false;_tooltip.css("display","none");} else {_tooltip.html(arg+"<b></b>");_tooltipX=(_tooltip.width()>>1)+7;_tooltip.css("display","block");}}I want to add another FUNCTION text box function in JS + CSS

  5. Empty text nodes are still considered text nodes. That includes line breaks between tags. You should use getElementsByTagName() to get the element you want. You also need to access the text node once you have the element.
    var book = xmlDoc.getElementsByTagName("book")[2]; // Get the book you're looking for (number 2 in the list)var authors = book.getElementsByTagName("author"); // Get a list of authors of the book.var a = authors[3]; // The author you want is number 3 on the listvar name = a.firstChild; // The name is the textnode contained in the <author> elementdocument.write(a.nodeValue);

    OK why here(next link) dont Successfulhttp://www.w3schools.com/dom/tryit.asp?filename=try_dom_getelementsbytagname
  6. <!DOCTYPE html><html><head><script src="loadxmldoc.js"></script></head><body> <script> xmlDoc=loadXMLDoc("books.xml"); x=xmlDoc.getElementsByTagName("title")[0]y=x.childNodes[0];document.write(y.nodeValue); </script></body></html> <bookstore> <book category="cooking"><title lang="en">Everyday Italian</title><author>Giada De Laurentiis</author><year>2005</year><price>30.00</price> </book> <book category="children"><title lang="en">Harry Potter</title><author>J K. Rowling</author><year>2005</year><price>29.99</price> </book> <book category="web"><title lang="en">XQuery Kick Start</title><author>James McGovern</author><author>Per Bothner</author><author>Kurt Cagle</author><author>James Linn</author><author>Vaidyanathan Nagarajan</author><year>2003</year><price>49.99</price> </book> <book category="web" cover="paperback"><title lang="en">Learning XML</title><author>Erik T. Ray</author><year>2003</year><price>39.95</price> </book> </bookstore> RESULT : Everyday Italian I want to go <author> James Linn </ author>RESULT : James Linn HOW?

×
×
  • Create New...