How can I reduce the weight of this page? [closed] - html

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
Post all the code is really bizzare (1200 line more or less) so I create a fiddle for this.
The whole page is really slow, also when I try to manage items on the DOM with Firebugs or others tools (it's really frozen).
So I think the best way is to optimize the HTML-CSS (in fact, removing the CSS definition the page back really faster).
I don't speak about loading the page, but navigate/edit item when the page is loaded (really, try to sort it out with firebug for example, you will see immediatly; you will notice it also on fiddle too).

Instead of having everything editable at once, only go in editing mode once you click an edit link for the row (asp.net style) or when you click on the row itself (devexpress style), and only then show your editing stuff for that row only.
The easiest way to make pages faster is to remove the controls from it :)

Related

why does the bookmark did not get bigger [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
I'm trying to understand how this site works because I want to use a similar solution on my own site.
The only thing I cannot figure out is how the red thing works, especially how the site knows which image to use. As background I see that sprites.png is used, but that one is filled with a lot of images.
What I would like to achieve is that the red thing is pulled out the whole time.
The site you referenced uses "sprites" as background images.
Here is more information on using sprites.
Using sprites allows the site to load a single graphic containing many sprites and then position them by adjusting the background-position of elements to display specific areas of the "sprites" image.
The site is also using javascript to move the element up and down.
In order for the bookmark to stay pulled out, don't apply any javascript.

HTML syntax highligter [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I want to ask you for help. I need some "simply-use" HTML syntax highlighter.
I have tryed http://alexgorbatchev.com/SyntaxHighlighter/ but this one doesnt support HTML5 tags and it has sliders on right side of screen no matter how big(small) content really is.
Thank you for any response.
prism.js
There are many scripts for this, but I find Lea Verou`s prismjs library to be the easiest to use. And of course it supports HTML5!
To use it, just wrap your code in pre and code tags, and give them a class of language-markup:
<pre class="language-markup"><code>
<div class="example">This is automatially highlighted</div>
</code></pre>
Here's what it'll look like:
and here' a live example: http://plnkr.co/edit/7Du1Oro4px3wsGv0BPOT?p=preview

What would cause IE9 to not interpret, or disregard parts of a web page? [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
It appears that IE (v9 in this instance) simply does not see or chooses to not interpret sections of the HTML code in a web page. I have two examples which I will refer to here -
1) In this page, http://www.tigerswrestling.net/lshs/seasons/current_season/index.php?program=lshs, IE9 fails to process the entire page, save for the ".article" div. FF and Chrome successfully parse the entire page correctly.
2) In this page, http://www.tigerswrestling.net/index.php, IE9 does not parse the "page-wrap" div - until AFTER the user has clicked on the page somewhere. Again, FF and Chrome do not have trouble interpreting or displaying this page.
This has really got me stumped. I'll appreciate any input from the experts here. Thanks in advance.
The validation report for the first page contains rather serious-looking syntax errors, like attempts to nest comments. Such errors may well confuse some browsers, and there’s really no specification on what is the right thing to do with syntactically malformed documents.
So validating the markup should at least be the first step in trying to fix the problem.

TinyMCE Content_css isn't working [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I am using TinyMCE with MVC 3 razor engine. I am trying to add my own classes I used content_css and added my style sheet. the classes appeared normally in the drop-down list but when i click them they don't affect the view or html. where should I look or inspect I'm using version 3.4.7
the problem was with the tinymce version
It can be a bug wiht tinymce. You can grab the lastest version and try.
Also consider migrating to ckeditor. Its a great editor and have support for a bunch of plugins. It's also highly customizable and esasy to implement and setup.

how to code this? [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
I have designed this search box in photoshop and want to implement it into a static php file on my local machine. I want to be able to change from the different search engines, such as google, yahoo, and others by clicking on the logo to the left and a drop down list being displayed. I don't know how I would change the url that the form gets, but I think I would make a table for the drop down list. And I am not good at coding forms either...
http://img824.imageshack.us/i/searchm.jpg/
Any help?
Looking at the 'dropdown' of search engines, I would imagine you'd have to use some kind of javascript framework for that (jQuery being my suggestion with this plugin):
http://www.marghoobsuleman.com/jquery-image-dropdown
http://jsfiddle.net/ddx4g/6/
Then you just need some PHP to work out what search engine was selected and the search title and redirect to the appropriate page:
$searchterm=$_POST['searchterm'];
$searchengine=$_POST['searchengine'];
echo'<META HTTP-EQUIV="Refresh" CONTENT="0; URL=$searchengine" . .com . "?=searchterm">'";
Or something along these lines. This was all done very quickly so there's bound to be some errors in here somewhere but should get you started.