hide

Animation without jquery, slide left and right

∥☆過路亽.° 提交于 2019-12-23 09:55:55
问题 I am trying to slide a div to the left when I show it and slide it to the right when I hide it, but I don't want to use jQuery. Is there a way to do simple animation and support IE7 and IE8 without using a javascript library? Here is my show/hide js: function showHide() { var Elliot = document.getElementById('Daniel').style.display; if (Elliot == "block") { document.getElementById('Daniel').style.display = "none"; } else { document.getElementById('Daniel').style.display = "block"; }; }; HTML

jquery hide text content in a tag, not the tag itself

北城以北 提交于 2019-12-23 08:27:17
问题 I have a slider using this html syntax: <div id="theatre"> <a class="sliderImg" href="01.jpg" />some-text</a> <a class="sliderImg" href="02.jpg" />another-description</a> <a class="sliderImg" href="03.jpg" />whatever</a> <a class="sliderImg" href="04.jpg" />whatever</a> </div> What I need to do is to hide the text of the a tags not the a tags themselves. I got this but doesn't work. var imgCaptions = $("#theatre a.sliderImg").html(); $(imgCaptions).hide(); I can't add a span because I use the

How do I hide a site from search engines? [closed]

空扰寡人 提交于 2019-12-23 07:06:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . I am looking to hide a site so that it doesn't show up in any search engine just wondering how I would go about this? 回答1: Use a robots.txt file: http://www.google.com/support/webmasters/bin/answer.py?answer=156449 回答2: Apart from password-protecting your site, you could add these lines to robots.txt : User

Automatically Hide or Close PopUp Menu when Mouse Pointer is outside it - Delphi

纵然是瞬间 提交于 2019-12-23 05:18:00
问题 I have a PopupMenu in my Application which pops up when a user right clicks on my App's Notification Area icon. When I right click on this icon, pop up the menu, and do nothing, my App behaves like resuming its work because it looks like it is waiting until I click on a Menu Item. I want to remove this behavior. I tried fixing the PopupMenu by adding an Auto-Close procedure when no response comes from the user and when the Mouse Pointer leaves the PopupMenu. I also tried adding a TTimer that

Javascript show hide based on radio buttons

你说的曾经没有我的故事 提交于 2019-12-23 05:12:03
问题 I've got some rough-and-ready code that allows me to filter some results based on two radio buttons. I'm struggling to add a third variant that will serve as a 'show all', ie to display all four divs at once. Any help would be much appreciated. <p class="text1">Variants <label> <input type="radio" name="type" value="variant-2" id="type_0" checked="checked" /> Variant 1</label> <label> <input type="radio" name="type" value="variant-1" id="type_1" /> Variant 2</label> </p> <script> $(document)

Hide option in select based on other select value

北城以北 提交于 2019-12-23 04:25:03
问题 I have two select tags of arrival city and departure city for carpool web site, I want to prevent the user from selecting the same city in the select of arrival city and the select of the departure city here is an example : <select name="departure" size="1"> <option value="1">NY</option> <option value="2">FL</option> <option value="3">LA</option> </select> <select name="arrival" size="1"> <option value="1">NY</option> <option value="2">FL</option> <option value="3">LA</option> </select> I

How to hide div that without id/class by jquery?

不问归期 提交于 2019-12-22 23:26:29
问题 How to hide first/second div with jQuery? Div can not get id/class! <body> <div> <p>ssssssss</p> </div> <div> <p>ttttttttt></p> </div> <div> <p>fffff</p> </div> </body> 回答1: To hide the first <div> element, do: $("div:eq(0)").hide(); To hide the second <div> element, do: $("div:eq(1)").hide(); To hide both the first and the second <div> elements, do: $("div:lt(2)").hide(); 回答2: $('div:lt(2)').hide(); 回答3: $("body div:nth-child(1)").hide(); perhaps? untested HTML markup is needed to help

How to hide div that without id/class by jquery?

≯℡__Kan透↙ 提交于 2019-12-22 23:24:12
问题 How to hide first/second div with jQuery? Div can not get id/class! <body> <div> <p>ssssssss</p> </div> <div> <p>ttttttttt></p> </div> <div> <p>fffff</p> </div> </body> 回答1: To hide the first <div> element, do: $("div:eq(0)").hide(); To hide the second <div> element, do: $("div:eq(1)").hide(); To hide both the first and the second <div> elements, do: $("div:lt(2)").hide(); 回答2: $('div:lt(2)').hide(); 回答3: $("body div:nth-child(1)").hide(); perhaps? untested HTML markup is needed to help

Style Sheets and hiding .html extension

混江龙づ霸主 提交于 2019-12-22 18:16:05
问题 I'm not amazing with web stuff but I have a small portfolio site which I am redesigning. I am looking to hide the example.com/page.html and make it website.com/page. I added the rewrite engine which I found on here for the .htaccess RewriteEngine On RewriteRule ^([A-Za-z0-9-]+)/?$ $1.html The only problem is that when I use the RewriteEngine , the original path of /page.html loads as normal, but when i test it as /page/ it seems to lose the style sheet, I've tried relinking the style sheet as

Find and replace emails and phone numbers in PHP

瘦欲@ 提交于 2019-12-22 17:39:46
问题 I was hoping for a little help on this, as it's confusing me a little... I run a website that allows users to send messages back and forth, but on the inbox i need to hide both emails and phone numbers. Example: This is how a sample email would look like. Hi, my phone is +44 5555555 and email is jack@jack.com I need it to be like this: Hi, my phone is (phone hidden) and email is (email hidden) Do you have any ideas ?... I really appreciate it!.. 回答1: $x = 'Hi, my phone is +44 5555555 and