Jump to content

Shadowing

Members
  • Posts

    222
  • Joined

  • Last visited

Posts posted by Shadowing

  1. thanks for the reply. I decided to just use seperate divs hehe. I have another question though that is driving me crazy. If i place a input field on the screen after page load. Do i need to use live or something in order to grab its value with

    $('#production_tech').val()

  2. Hey guys im having a wierd issue I have a ajax working menu that when you click on each item in the menu a div pops up. I'm trying to have each menu item use the same div. So this is pretty much what each menu item has. what happends is when I click on "li.planets" the div appears with its content and then I click "#close" and it clears the div makes it blank but for some reason when i click on "li.planets" again to show the div its blank instead of reloading the content. for my understanding using html should replace content every time right?

     $("li.planets").click(function(event) {	     $("div.child_window").show(0);			 	 $("a#close").click(function(event) {				$("div.child_window").hide(0);		$('div.child_window_content').html("");		$('div.child_window_menu').html("");	 }); });        $("div.child_option1").click(function(event) {     $.ajax({		      url: "ajax/menu_planets.php?functions=planets_owned",		      type: 'POST',		      	success: function(response) {		$('div.child_window_content').html(response.display);		}  }); });

    • Like 1
  3. if i did place something on top of everything and made it transparent. im assuming this is what you mean? would that also keep me from interacting with elements under it? like clicking or what ever. which wouldnt be what id want. im pretty sure if you log into www.lordofultima.com/ you cant hight light stuff on the map. i'll check that again. but I know the game Utopia does it where you cant select. but they are also have no need to interact with elements. I wanted to do this cause idk it just feels better when clicking around on the page

  4. Hey guys I notice some sites/games have it where you cant double click on the screen and high light stuff. Was wondering how they do that? I notice google doesnt do this but gives a example of what I dont want. google.jpg

×
×
  • Create New...