Jump to content

anushka

Members
  • Posts

    41
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

anushka's Achievements

Member

Member (2/5)

0

Reputation

  1. include('../affiliate/users/groups.php' ); when u this function i am getting all this errors Warning: include(../affiliate/users/groups.php) [function.include]: failed to open stream: No such file or directory in /home/mailsrig/public_html/mycity/listing/index.php on line 7 Warning: include(../affiliate/users/groups.php) [function.include]: failed to open stream: No such file or directory in /home/mailsrig/public_html/mycity/listing/index.php on line 7 Warning: include() [function.include]: Failed opening '../affiliate/users/groups.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mailsrig/public_html/mycity/listing/index.php on line 7 Warning: Cannot modify header information - headers already sent by (output started at /home/mailsrig/public_html/mycity/listing/index.php:7) in /home/mailsrig/public_html/mycity/layout/header.php on line 21 Warning: Cannot modify header information - headers already sent by (output started at /home/mailsrig/public_html/mycity/listing/index.php:7) in /home/mailsrig/public_html/mycity/layout/header.php on line 22 Warning: Cannot modify header information - headers already sent by (output started at /home/mailsrig/public_html/mycity/listing/index.php:7) in /home/mailsrig/public_html/mycity/layout/header.php on line 23 Warning: Cannot modify header information - headers already sent by (output started at /home/mailsrig/public_html/mycity/listing/index.php:7) in /home/mailsrig/public_html/mycity/layout/header.php on line 24 Warning: Cannot modify header information - headers already sent by (output started at /home/mailsrig/public_html/mycity/listing/index.php:7) in /home/mailsrig/public_html/mycity/layout/header.php on line 25
  2. include(/public_html/affiliate/users."groups.php"); the groups.php is the file i want use.its located in affiliate/users folders is this syntax is correct Can u please tel Thanks a lot
  3. i have two parent directory One is affiliate directory and another is XXX directory i want use the one file from Affiliate Directory in xxx how can i use Please can any one help me
  4. hii all my php files has .tpl extension is there any editor that i should work like Dreamweaver .Please tel me are there any software
  5. i have navbar when i click the image is not displaying below that .Its showing toward right all the image are showing under Here is code Please some one help <html> <head> <style type="text/css"> body{ font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif; /* Font to use */ margin:2px; } .dhtmlgoodies_question{ /* Styling question */ /* Start layout CSS */ color:#FFF; font-size:0.9em; background-color:#317082; width:200px; margin-bottom:2px; margin-top:2px; padding-left:2px; background-image:url('images/bg_answer.gif'); background-repeat:no-repeat; background-position: right -198px; height:20px; overflow:hidden; cursor:pointer; float:left; /* End layout CSS */ } .dhtmlgoodies_answer{ /* Parent box of slide down content */ /* Start layout CSS */ border:1px solid #317082; background-color:#E2EBED; width:200px; /* End layout CSS */ visibility:hidden; height:0px; overflow:hidden; position:absolute; } .dhtmlgoodies_answer_content{ /* Content that is slided down */ padding:1px; font-size:0.9em; position:absolute; float:none; } </style> <script type="text/javascript"> var dhtmlgoodies_slideSpeed = 10; // Higher value = faster var dhtmlgoodies_timer = 10; // Lower value = faster var objectIdToSlideDown = false; var dhtmlgoodies_activeId = false; var dhtmlgoodies_slideInProgress = false; function showHideContent(e,inputId) { if(dhtmlgoodies_slideInProgress)return; dhtmlgoodies_slideInProgress = true; if(!inputId)inputId = this.id; inputId = inputId + ''; var numericId = inputId.replace(/[^0-9]/g,''); var answerDiv = document.getElementById('dhtmlgoodies_a' + numericId); objectIdToSlideDown = false; if(!answerDiv.style.display || answerDiv.style.display=='none'){ if(dhtmlgoodies_activeId && dhtmlgoodies_activeId!=numericId){ objectIdToSlideDown = numericId; slideContent(dhtmlgoodies_activeId,(dhtmlgoodies_slideSpeed*-1)); }else{ answerDiv.style.display='block'; answerDiv.style.visibility = 'visible'; slideContent(numericId,dhtmlgoodies_slideSpeed); } }else{ slideContent(numericId,(dhtmlgoodies_slideSpeed*-1)); dhtmlgoodies_activeId = false; } } function slideContent(inputId,direction) { var obj =document.getElementById('dhtmlgoodies_a' + inputId); var contentObj = document.getElementById('dhtmlgoodies_ac' + inputId); height = obj.clientHeight; if(height==0)height = obj.offsetHeight; height = height + direction; rerunFunction = true; if(height>contentObj.offsetHeight){ height = contentObj.offsetHeight; rerunFunction = false; } if(height<=1){ height = 1; rerunFunction = false; } obj.style.height = height + 'px'; var topPos = height - contentObj.offsetHeight; if(topPos>0)topPos=0; contentObj.style.top = topPos + 'px'; if(rerunFunction){ setTimeout('slideContent(' + inputId + ',' + direction + ')',dhtmlgoodies_timer); }else{ if(height<=1){ obj.style.display='none'; if(objectIdToSlideDown && objectIdToSlideDown!=inputId){ document.getElementById('dhtmlgoodies_a' + objectIdToSlideDown).style.display='block'; document.getElementById('dhtmlgoodies_a' + objectIdToSlideDown).style.visibility='visible'; slideContent(objectIdToSlideDown,dhtmlgoodies_slideSpeed); }else{ dhtmlgoodies_slideInProgress = false; } }else{ dhtmlgoodies_activeId = inputId; dhtmlgoodies_slideInProgress = false; } } } function initShowHideDivs() { var divs = document.getElementsByTagName('DIV'); var divCounter = 1; for(var no=0;no<divs.length;no++){ if(divs[no].className=='dhtmlgoodies_question'){ divs[no].onclick = showHideContent; divs[no].id = 'dhtmlgoodies_q'+divCounter; var answer = divs[no].nextSibling; while(answer && answer.tagName!='DIV'){ answer = answer.nextSibling; } answer.id = 'dhtmlgoodies_a'+divCounter; contentDiv = answer.getElementsByTagName('DIV')[0]; contentDiv.style.top = 0 - contentDiv.offsetHeight + 'px'; contentDiv.className='dhtmlgoodies_answer_content'; contentDiv.id = 'dhtmlgoodies_ac' + divCounter; answer.style.display='none'; answer.style.height='1px'; divCounter++; } } } window.onload = initShowHideDivs; </script> <body> <div class="dhtmlgoodies_question">New Products</div> <div class="dhtmlgoodies_answer"> <div> <img src="images2.jpg"/> </div> </div> <div class="dhtmlgoodies_question">Hot Products</div> <div class="dhtmlgoodies_answer"> <div> <img src="images1.jpg"/> </div> </div> <div class="dhtmlgoodies_question">Comming soon</div> <div class="dhtmlgoodies_answer"> <div> <img src="images3.jpg"/> </div> </div> </body> </head> </html> Thanks in advance
  6. hii i am not using the blue color ,but its taking blue color in drop down menu i want it to be balck color Can any one help please <html> <head> <style type="text/css"> #dropmenudiv{ position:absolute; border:1px solid black; border-bottom-width: 0; font:normal 12px Verdana; font_color:#191919; line-height:18px; z-index:100; } #dropmenudiv a{ width: 100%; display: block; text-indent: 3px; border-bottom: 1px solid black; padding: 1px 0; text-decoration: none; font-weight: bold; } #dropmenudiv a:hover{ /*hover background color*/ background-color: yellow; font_color:#191919; } </style> <script type="text/javascript"> /*********************************************** * AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ //Contents for menu 1 var menu1=new Array() menu1[0]= '<a href="http://www.javascriptkit.com">Ashok</a><br>' menu1[1]='<a href="http://www.freewarejava.com">Ashok1</a><br>' menu1[2]='<a href="http://codingforums.com">Ashok2</a><br>' menu1[3]='<a href="http://www.cssdrive.com">Ashok3</a><br>' menu1[4]='<a href="http://www.javascriptkit.com">Ashok4</a><br>' menu1[5]='<a href="http://www.freewarejava.com">Ashok5</a><br>' menu1[6]='<a href="http://codingforums.com">Ashok6</a><br>' menu1[7]='<a href="http://www.cssdrive.com">Ashok7</a><br>' //Contents for menu 2, and so on var menu2=new Array() menu2[0]='<a href="http://cnn.com">CNN</a><br>' menu2[1]='<a href="http://msnbc.com">MSNBC</a><br>' menu2[2]='<a href="http://news.bbc.co.uk">BBC News</a><br>' menu2[3]='<a href="http://cnn.com">CNN</a><br>' menu2[4]='<a href="http://msnbc.com">MSNBC</a><br>' menu2[5]='<a href="http://news.bbc.co.uk">BBC News1</a><br>' var menuwidth='165px' //default menu width var menubgcolor='lightyellow' //menu bgcolor var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds) var hidemenu_onclick="yes" //hide menu when user clicks within menu? /////No further editting needed var ie4=document.all var ns6=document.getElementById&&!document.all if (ie4||ns6) document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>') function getposOffset(what, offsettype){ var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop; var parentEl=what.offsetParent; while (parentEl!=null){ totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop; parentEl=parentEl.offsetParent; } return totaloffset; } function showhide(obj, e, visible, hidden, menuwidth){ if (ie4||ns6) dropmenuobj.style.left=dropmenuobj.style.top="-500px" if (menuwidth!=""){ dropmenuobj.widthobj=dropmenuobj.style dropmenuobj.widthobj.width=menuwidth } if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover") obj.visibility=visible else if (e.type=="click") obj.visibility=hidden } function iecompattest(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body } function clearbrowseredge(obj, whichedge){ var edgeoffset=0 if (whichedge=="rightedge"){ var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15 dropmenuobj.contentmeasure=dropmenuobj.offsetWidth if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure) edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth } else{ var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18 dropmenuobj.contentmeasure=dropmenuobj.offsetHeight if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up? edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge } } return edgeoffset } function populatemenu(what){ if (ie4||ns6) dropmenuobj.innerHTML=what.join("") } function dropdownmenu(obj, e, menucontents, menuwidth){ if (window.event) event.cancelBubble=true else if (e.stopPropagation) e.stopPropagation() clearhidemenu() dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv populatemenu(menucontents) if (ie4||ns6){ showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth) dropmenuobj.x=getposOffset(obj, "left") dropmenuobj.y=getposOffset(obj, "top") dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px" dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px" } return clickreturnvalue() } function clickreturnvalue(){ if (ie4||ns6) return false else return true } function contains_ns6(a, b) { while (b.parentNode) if ((b = b.parentNode) == a) return true; return false; } function dynamichide(e){ if (ie4&&!dropmenuobj.contains(e.toElement)) delayhidemenu() else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget)) delayhidemenu() } function hidemenu(e){ if (typeof dropmenuobj!="undefined"){ if (ie4||ns6) dropmenuobj.style.visibility="hidden" } } function delayhidemenu(){ if (ie4||ns6) delayhide=setTimeout("hidemenu()",disappeardelay) } function clearhidemenu(){ if (typeof delayhide!="undefined") clearTimeout(delayhide) } if (hidemenu_onclick=="yes") document.onclick=hidemenu </script> </head> <body> <div id="tooltip" style="bottom::relative;visibility:hidden;border:0px solid white;font-size:12px;layer-background-color:lightyellow;background-color:lightyellow;padding:1px"></div> <a href="default1.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()">Check dis</a> <a href="default2.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu2, '150px')" onMouseout="delayhidemenu()">News Sites</a> </body>
  7. Hii i have a situation .i kept button has an image type(and the image will be of forward/backward).whenever the user clicks on the backward button the image should go show that particular image And i Am using sliding show also and the code which i have written is here <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>continuous scrolling images</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> body #container { position:relative; width:500px; height:300px; overflow:hidden; border:5px double #000; background-color:#fff; margin:100px auto 0 auto; height:300px; } #div1 { position:absolute; left:0px; top:0px; width:500px; height:500px; } #div2 { position:absolute; left:424px; top:0px; width:500px; height:500px; } #div3 { position:absolute; bottom:0; width:100%; background:#F6F6F6; height:20px; /* Height of the footer */ } #div4 { position:absolute; bottom:0; width:100%; } img { border:1px solid #000; margin:2px; float:left; } </style> <script type="text/javascript"> var m=0; var n=424; var speed=20; function scrollPics() { document.getElementById('div1').style.left=m+'px'; document.getElementById('div2').style.left=n+'px'; m--; n--; if(m==-424) { m=424; } if(n==-424) { n=424; } setTimeout('scrollPics()',speed); } window.onload=function() { scrollPics(); } </script> </head> <body> <div id="container"> <div id="div1"> <img src="snow trees.jpg" height="200" width="200" alt=""> <img src="homepage.jpg" height="200" width="200" alt=""> </div> <div id="div2"> <img src="windows 2000.jpg"height="200" width="200" alt=""> <img src="solar eclipse.jpg"height="200" width="200" alt=""> </div> </script> <div id="div3"> <INPUT TYPE="image" SRC="forward.jpg" align= "left" VALUE="Submit now" ALT="Submit now" NAME="Submit now" > </div> <div id="div4"> <INPUT TYPE="image" SRC="backward.jpg" align="right" VALUE="Submit now1" ALT="Submit now1" NAME="Submit now1" > </div> </body> </html> Please tel how to do this EDIT:Code tags...use em'
  8. i have home page i should add image and thet image should should change at particular time and there will be a button changeonclick on that button image should change i think u all got it what is my problem i wrote code,but i am not able to read the main image <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html ><head> <title></title> <link href="/utility/main.css" type="text/css" rel="STYLESHEET"> </head> <body> <script language="JavaScript" type="text/javascript"><!-- var number = window.location.search.substring(1) - 0; document.write('<IMG SRC="images1' + number + '.jpg" WIDTH=400 HEIGHT=300><P>'); if (number == 1) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?1"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if (number == 2) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?2"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if (number == 3) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?3"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if (number == 4) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?4"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if (number == 5) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?5"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if ((number >= 1) && (number < 5)) document.write('<IMG SRC="/images1' + (number + 1) + '.jpg" WIDTH=1 HEIGHT=1>'); //--></script> </body> </html>
  9. i have home page i should add image and thet image should should change at particular time and there will be button that should also upon that it should change i think u all got itr what is my problem i wrote code,but i am not able to read the main image <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html ><head> <title></title> <link href="/utility/main.css" type="text/css" rel="STYLESHEET"> </head> <body> <script language="JavaScript" type="text/javascript"><!-- var number = window.location.search.substring(1) - 0; document.write('<IMG SRC="images1' + number + '.jpg" WIDTH=400 HEIGHT=300><P>'); if (number == 1) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?1"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if (number == 2) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?2"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if (number == 3) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?3"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if (number == 4) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?4"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if (number == 5) document.write('<IMG SRC="/images1/on.gif" WIDTH=35 HEIGHT=35>'); else document.write('<A HREF="slides.htm?5"><IMG SRC="/images1/off.gif" WIDTH=35 HEIGHT=35 BORDER=0><\/A>'); if ((number >= 1) && (number < 5)) document.write('<IMG SRC="/images1' + (number + 1) + '.jpg" WIDTH=1 HEIGHT=1>'); //--></script> </body> </html>
  10. Hii every one i have drop down menu on one of my link.Its working fine,But when the drop down menu display the text is not aligning properly means all the links of that text are not starting at the same starting point. i want the text to be started at the same point can any one help please
  11. if i write the JavaScript in the page itself i can read it But even i keep in external js file i am not able to read Please can any fix what is the problem in my code Code is below /****************>html file <html> <head> <script type="text/javascript" src="delayhidemenu.js"> </script> </head> <body> <div id="tooltip" style="position:absolute;visibility:hidden;border:1px solid black;font-size:12px;layer-background-color:lightyellow;background-color:lightyellow;padding:1px"></div> <a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()">Web Design</a> <a href="default2.htm" onClick="return dropdownmenu(this, event, menu2, '200px')" onMouseout="delayhidemenu()" onClick="go()">News Sites</a> (onclick) </body> /************************ Js file for that above file function go() { //Contents for menu 1 var menu1=new Array() menu1[0]='<a href="http://www.javascriptkit.com">JavaScript Kit</a>' menu1[1]='<a href="http://www.freewarejava.com">Freewarejava.com</a>' menu1[2]='<a href="http://codingforums.com">Coding Forums</a>' menu1[3]='<a href="http://www.cssdrive.com">CSS Drive</a>' menu1[4]='<a href="http://www.javascriptkit.com">JavaScript Kit1</a>' menu1[5]='<a href="http://www.freewarejava.com">Freewarejava.com1</a>' menu1[6]='<a href="http://codingforums.com">Coding Forums1</a>' menu1[7]='<a href="http://www.cssdrive.com">CSS1 Drive</a>' //Contents for menu 2, and so on var menu2=new Array() menu2[0]='<a href="http://cnn.com">CNN</a>' menu2[1]='<a href="http://msnbc.com">MSNBC</a>' menu2[2]='<a href="http://news.bbc.co.uk">BBC News</a>' menu2[3]='<a href="http://cnn.com">CNN</a>' menu2[4]='<a href="http://msnbc.com">MSNBC1</a>' menu2[5]='<a href="http://news.bbc.co.uk">BBC News1</a>' var menuwidth='165px' //default menu width var menubgcolor='lightyellow' //menu bgcolor var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds) var hidemenu_onclick="yes" //hide menu when user clicks within menu? /////No further editting needed var ie4=document.all var ns6=document.getElementById&&!document.all if (ie4||ns6) document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>') function getposOffset(what, offsettype){ var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop; var parentEl=what.offsetParent; while (parentEl!=null){ totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop; parentEl=parentEl.offsetParent; } return totaloffset; } function showhide(obj, e, visible, hidden, menuwidth){ if (ie4||ns6) dropmenuobj.style.left=dropmenuobj.style.top="-500px" if (menuwidth!=""){ dropmenuobj.widthobj=dropmenuobj.style dropmenuobj.widthobj.width=menuwidth } if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover") obj.visibility=visible else if (e.type=="click") obj.visibility=hidden } function iecompattest(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body } function clearbrowseredge(obj, whichedge){ var edgeoffset=0 if (whichedge=="rightedge"){ var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15 dropmenuobj.contentmeasure=dropmenuobj.offsetWidth if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure) edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth } else{ var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18 dropmenuobj.contentmeasure=dropmenuobj.offsetHeight if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up? edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge } } return edgeoffset } function populatemenu(what){ if (ie4||ns6) dropmenuobj.innerHTML=what.join("") } function dropdownmenu(obj, e, menucontents, menuwidth){ if (window.event) event.cancelBubble=true else if (e.stopPropagation) e.stopPropagation() clearhidemenu() dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv populatemenu(menucontents) if (ie4||ns6){ showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth) dropmenuobj.x=getposOffset(obj, "left") dropmenuobj.y=getposOffset(obj, "top") dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px" dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px" } return clickreturnvalue() } function clickreturnvalue(){ if (ie4||ns6) return false else return true } function contains_ns6(a, b) { while (b.parentNode) if ((b = b.parentNode) == a) return true; return false; } function dynamichide(e){ if (ie4&&!dropmenuobj.contains(e.toElement)) delayhidemenu() else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget)) delayhidemenu() } function hidemenu(e){ if (typeof dropmenuobj!="undefined"){ if (ie4||ns6) dropmenuobj.style.visibility="hidden" } } function delayhidemenu(){ if (ie4||ns6) delayhide=setTimeout("hidemenu()",disappeardelay) } function clearhidemenu(){ if (typeof delayhide!="undefined") clearTimeout(delayhide) } if (hidemenu_onclick=="yes") document.onclick=hidemenu }
  12. Hii I have a home page and all the links are displayed.When i use mouse over on the link a window should be displayed that contain all the categories in that link .And even i go that url using that link How its possible to do Thank for reply
  13. hi every one i want to create a radio button and by using on click i want the event to be occurred i wrote the code but its not working.Can any one help me Radio.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="radio.js"> </script> </head> <body> <form name="form" action="radio.php" method="POST"/> Yes:<input type="radio" value="yes" name="radio1" onclick="showRequest(this.form,"radio.php")"/> NO<input type="radio" value="no" name="radio1" onclick="showRequest(this.form,"radio.php")"/> </form> <div id="radio"></div> </body> </html> and my js file var xmlHttp function showResult(str) { document.getElementById("radio").InnerHTML=""; return } xmlHttp=GetXmlHttpObject() if(xmlHttp==null) { alert("Browser dosent support Ajax"); return } var url="radio.php" //url=url+?"$q="+str xmlHttp.onreadystatechanged=stateChanged xml.open("GET",url,true) xmlHttp.send(null); function stateChanged() { if(xmlHttp.steadystate==4||xmlHttp.steadystate="complete") { document.getElementById("radio").innerHTML=xmlHttp.responseText(); document.getElementById("radio"). style.border="1px solid #A5ACB2"; } } function GetXmlHttpObject() { var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } .php file <?php $q=$_GET["q"]; echo $q; $radio=$_POST['radio1']; if($radio=="yes") { echo yes; ?> <input type="text" name="text"/> <?php } else{ echo no; ?> <input type="submit" value="click"/> <?php } ?> if there are please Reply
  14. hello everyone i am want to insert the image background on my page and the text should be on the front end.Means it should look like image reading the text .How this can be done thanks a lot for your help
  15. i have website whenever they upload .doc file it should convert to .pdf file Can we do it Please help me
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.