Announcement

Collapse
No announcement yet.

Unconfigured Ad Widget

Collapse

Need help regarding frames

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need help regarding frames

    Salam I'm trying to make a page where its divided into two parts TOP MENU FRAMESET mainly...

    TOP portion mein I need to put a drop down menu jisko click karke I can go to the page displayed in second portion.

    drop down menu mein mujhe ghazalon ke naam daalne hain aur un pe click karte hi main ghazal pe pahuch jaoon usi page mein neeche yaani second portion of frame.

    agar bina frame ke bhi ye mumkin ho to do let me know where.. when I click an item in the drop down ..the image/page should be displayed in the same page.

    agar sawaal na samajh aaya to plz let me know..dubaara batati hoon ke mujhe kya chahiye....

    me waiting for reply!

    Thanks..

    shumaila
    Last edited by shummu; 3 October 2006, 14:55.

  • #2
    Dynamic Drive DHTML(dynamic html) & JavaScript code library)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive DHTML(dynamic html) & JavaScript code library for full source code
    ***********************************************/
    //Contents for menu 2, and so on
    var menu2=new Array()
    menu2[0]='<a href="http://www.pegham.com">Pegham</a>'
    menu2[1]='<a href="http://www.pegham.net">Pegham Network</a>'
    menu2[2]='<a href="http://www.shab-o-roz.dk">Shab-o-Roz</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+';backg round-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().clientWid th-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().clientHeig ht-15 : window.pageYOffset+window.innerHeight-18
    dropmenuobj.contentmeasure=dropmenuobj.offsetHeigh t
    if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
    edgeoffset=dropmenuobj.contentmeasure+obj.offsetHe ight
    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>
    <a href="default2.htm" onClick="return dropdownmenu(this, event, menu2, '200px')" onMouseout="delayhidemenu()">Pegham Ka Network</a> (onclick)
    </body>
    </html>
    اللھم صلی علٰی محمد وعلٰی آل محمد کما صلیت علٰی ابراھیم وعلٰی آل ابراھیم انک حمید مجید۔
    اللھم بارک علٰی محمد وعلٰی آل محمد کما بارکت علٰی ابراھیم وعلٰی آل ابراھیم انک حمید مجید۔

    Comment


    • #3
      Re: Need help regarding frames

      Aap aik dreamever software hia wo use karoooooooo uss main itni coding ki zarooooorat nahin hia Modify main aik option hai frames ka .........uss ki madad se aap boaht zabardast frames.... bana saktey hain ...................
      Har-Fun-Moula

      Comment


      • #4
        Re: Need help regarding frames

        Originally posted by Hamsafar View Post
        Aap aik dreamever software hia wo use karoooooooo uss main itni coding ki zarooooorat nahin hia Modify main aik option hai frames ka .........uss ki madad se aap boaht zabardast frames.... bana saktey hain ...................
        Yeh software kahan se download kiya ja sakta hai?
        Mind Sciences

        Comment


        • #5
          Re: Need help regarding frames

          dont waist ur time..just go the downlod section or :Make Money with Google: and download menu maker....its great....
          ucan check this i had make thia
          WEBLINK
          Last edited by ; 4 October 2006, 18:41.

          Comment


          • #6
            Re: Need help regarding frames

            thanx every1...maine frames to bana liya tha magar kuch errors the jo ab theek kar liye hain maine....thanx..aage phir masla hua to aaongi...

            Comment

            Working...
            X