html

Sites with hideable announcements/tips

Does anyone know of any site that uses javascript to generate a tip/message/announcement block that has a 'Hide this' option? Preferably like Stack Overflow where other containers get shifted up when the tip/announcement is hidden. I'm just trying to compile a list of sites using that feature. Thanks ...

Best way to Go Previous page in PHP

i m using a button to go back page (let zero.php) so i m using this <input type="button" value="Back" class="button" onClick="javascript:history.go(-1)" /> but it fails when we do some stuff on that page like from one.php we add some data and go to two.php( where database quary runs) and again comes to a.php and then click on that...

Do not scroll with anchor, simply change div?

Lemme explain my situation here: I'm trying to make a layout for a website. This goes in a small box, and can include HTML and CSS, yet not javascript. I have a small box inside this, with tabs to link to different things. This is done via putting the divs in a box and using anchor tags to get to them. This is totally fine, until the pag...

Is there a workaround for z-index stacking contexts?

Sample of the problem Let there be 3 divs. <div id="div1"><div id="div2"></div></div> <div id="div3" /> If div2 has a higher z-index than div3 but div1 has a lower z-index than div3, then div2 will be shown below div3. Is there any way to have div2 be above div3 without changing the z-index of div1 or making div2 a sibling of div1/d...

Can I scatter divs around a page randomly using only HTML and CSS?

i want to have a box in the centre of a page and several boxes scattered around, with different sizes, random positions, and no overlap. I think this is not possible to do with just html and css, and javascript/html DOM is needed. Have you seen examples of this? Do you have any tip or piece of code that can be helpful? Dont mind if it ...

jQuery/Javascript auto tab index lock/select?

I have a simple display project and want to cut out the mouse from the equation, the page only has one field (a search field) and I want the browser to be locked into to the field remove the need for a mouse while keeping it user friend for those who don't know how to maneuver without a mouse. Can it be done with jQuery/Javascript? I do...

Which Html Parser is best?

I code a lot of parsers. Up till now, I was using HtmlUnit headless browser for parsing and browser automation. Now, I want to separate both the tasks. As 80% of my work involves just parsing, I want to use a light html parser because it takes much time in HtmlUnit to first load a page, then get the source and then parse it. I want to...

Using arrow keys with jQuery scrollTo

Hi, I have successfully implemented the scrollTo jQuery plugin which scrolls to the next div with the class "new" when a link is clicked. However, I would also like to be able to use the arrow keys to scroll up and down to the next/previous divs of the same class. I have looked all over the internet but have been unable to find out how...

calll html button onclick event from asp server side login authenticate event

Need to programmatically click an html button from a login event (code behind? the html button sends variables to Flash using method: no response - with no postback and uses ExternalInterface API via javascript. Going from SWF > ASPX is great, but need to send User.Identity to SWF from ASPX via javascript after authenticate with login e...

Is there a performance difference when writing an image src with a relative url versus using http://mysite.com/image.jpg ?

I have a small script on artimap.com that I use to asychronously load images. Each images are the same transparent gif, but the rel attribute is the real adress of the image. The javaScript reads the rel attribute and load that image. I plan to put "http://artimap.com/" before all the images that I load instead of using relative src beca...

Will an image with style="display: none" still be downloaded and cached?

I'm trying to figure out a way to cache the next and previous images in my gallery script ... I'm wondering if this is a good way to do it. Also, is there any way to manually specify the cache time for the downloaded image? ...

Wrapping content with jquery

How can I use wrap around the content with the placeholder div using jQuery. So I can turn this - <div class="placeholder"></div> <div class="content"></div> <div class="content"></div> <div class="content"></div> <div class="content"></div> <div class="placeholder"></div> <div c...

search by category with php mysql

hello im using this code to do search <form action="arama.php" method="get"> <input type="text" name="lol"> <select name='kategori'> <option value="tum">Tum kategoriler</option> <? while ($kat = mysql_fetch_array($kategori_isim)) { echo " <option value=".$kat[kategori_isim].">".$kat[kategori_isim]."</option>"; } ?> </select> <inpu...

Any tool to show you all elements/pages in a site that are affected by a particular CSS rule?

Of course we can use tools like Firebug to highlight portions of HTML and see what all CSS is being applied. But what about the reverse? Is there some kind of tool which would allow you to highlight a particular CSS rule and show you all the pages on a site (either static HTML pages or their dynamic templates) that it applies to? Exam...

HTML Pictures Horizontial Row

Hello, I was wondering if there was a way to make a div containing images have an overflow that scrolls horizontially, as depicted in the projected diagram below: as always, any help is greatly appreciated ...

In-browser HTML editor for tables?

I'm developing a website that publishes scientific articles, not as PDF but as HTML. As a input tool for the editorial team, we use TinyMCE for normal text plus a couple of custom plugins for footnotes and citations. But we are not really happy with TinyMCEs table controls. Everything but the most simple tables take way to long to write....

How to sort two tables located side by side so that changes in one are reflected in the other

Suppose I have two tables A and B and each one has only 1 column. Each row in table A corresponds to each row in B, but I don't want them to be in one table. A B ------ ---------- car automobile bike train When I sort A alphabetically I should get A B ------ ---------- bike train car automobile ...

Pulling out HTML with JQuery

I have the following structure in my document: <div id="clientList> <a href=whatever.php" att="something">Text</a> <a href=whatever.php" att="something">Text</a> </div> Say I want to get all of the links between the div out, how would I do this? I tried the following: $('#clientList').children("a").each(function() { var x = $(this)....

MVC2: Is there an Html Helper for raw Html?

Is there an Html helper that simply accepts and returns raw html? Rather than do something ugly like this: <% if (Model.Results.Count > 0) { %><h2>Results</h2><% } %> I'd like to do something like this: <% if (Model.Results.Count > 0) { Html.RawHtml("<h2>Results</h2>") } %> Not a whole lot cleaner, but I think it's a bit of an imp...

Is there any way to reference the system fonts and colors in Internet Explorer from HTML, CSS or MSHTML interfaces?

I want to do something like this: <style type="text/css"> body { font-family: dialog-font; /* Tahoma, Segoe UI or MS Sans Serif */ color: button-text; background-color: button-face; } </style> Are there any Microsoft-specific CSS values which provide this functionality? ...