44 users online (0 members and 44 guests)  


Page 2 of 2 First 1 2
  Results 16 to 25 of 25

Related

  1. frames vs. css    Forum: CSS Forum
    Replies: 3
  2. frames    Forum: HTML Forum
    Replies: 3
  3. frames    Forum: HTML Forum
    Replies: 11
  4. frames HELP-please?    Forum: HTML Forum
    Replies: 5
  5. Frames    Forum: HTML Forum
    Replies: 2
  1. #16
    adamsen's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Denmark
    Posts
    128

    Re: Frames in IE 6 & 7

    Hey rangana. You downloaded my files, but there is a big problem. When I push the buttons in menuframe.html nothing happens. The other frame has this name: "showframe". And this is my button code:
    HTML Code:
    HTML Code:
    <a href="reservering.html" target="showframe"><button style="width:175px">Reservering</button></a>

  2. #17
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: Frames in IE 6 & 7

    Works fine on FF.

    Try to remove the "button" tag and it will work well on IE.

    That could be a hint for you.
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  3. #18
    adamsen's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Denmark
    Posts
    128

    Re: Frames in IE 6 & 7

    You are right, but do you have some code which removes the button-tags if the guest is using IE?

  4. #19
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: Frames in IE 6 & 7

    On menuframe.html:
    Code:
    <script type="text/javascript">
    window.attachEvent('onload',function(){
    	ray.removeButton();
    	}); // Add for IE
    
    var ray={
    	copy:[], // Initialize an array
    	
    	removeButton:function(){
    		var butArr = document.getElementsByTagName('button'); // Get all buttons
    		for(var i = 0 ; i < butArr.length; i++) // Loops through all of them
    			this.copy.push(butArr[i]); // Get a copy of all those buttons in an array
    			
    		this.remove(); // Call remove method
    	},
    	
    	remove:function(){
    		for(var i = 0; i < this.copy.length; i++) // Loop through all the button's copy
    			this.copy[i].removeNode(); // Remove them from the document
    	}
    }
    </script>
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  5. #20
    adamsen's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Denmark
    Posts
    128

    Re: Frames in IE 6 & 7

    That was a nice code rangana, works fine. But can I edit the code so it only runs, if iīm viewing IE?

  6. #21
    adamsen's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Denmark
    Posts
    128

    Re: Frames in IE 6 & 7

    O, how a stupid question, I just not tried it in my major browser... UPS

  7. #22
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: Frames in IE 6 & 7

    That code will only be understood by IE.
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  8. #23
    adamsen's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Denmark
    Posts
    128

    Re: Frames in IE 6 & 7

    I know, but can I specufy the code so it only runs if the guest is using IE 6?

  9. #24
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: Frames in IE 6 & 7

    Code:
    <!--[if IE 6]>
    PLACE THE SCRIPT HERE
    <![endif]-->
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  10. #25
    adamsen's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Denmark
    Posts
    128

    Re: Frames in IE 6 & 7

    Allright, thanks.



Page 2 of 2 First 1 2

Tags for this Thread