This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create the function. | |
var htmlspecialchars = function(string) { | |
// Our finalized string will start out as a copy of the initial string. | |
var escapedString = string; | |
// For each of the special characters, | |
var len = htmlspecialchars.specialchars.length; | |
for (var x = 0; x < len; x++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create the function. | |
var htmlspecialchars_decode = function(string) { | |
// Our finalized string will start out as a copy of the initial string. | |
var unescapedString = string; | |
// For each of the special characters, | |
var len = htmlspecialchars_decode.specialchars.length; | |
for (var x = 0; x < len; x++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************\ | |
|* Translating ampersand first: *| | |
\********************************/ | |
var string = '<'; // < | |
string = string.replace(/&/g, '&'); // < | |
string = string.replace(/</g, "<"); // < | |
/*******************************\ | |
|* Translating ampersand last: *| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="news-slider" id="news-slider-#"> | |
<div class="padding"> | |
<div class="background2"></div> | |
<div class="background"></div> | |
<div class="navigation bar"></div> | |
<div class="navigation icons"> | |
<img alt="..." class="image#" src="..." title="" /> | |
<img alt="..." class="image#" src="..." title="" /> | |
<img alt="..." class="image#" src="..." title="" /> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div.news-slider { | |
background-color: #F8D8D0; | |
border: 1px outset #E0D0C0; | |
height: 320px; | |
margin: 0 auto; | |
text-align: left; | |
width: 620px; | |
} | |
div.news-slider div.padding { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div.news-slider div.background, | |
div.news-slider div.background2 { | |
background-repeat: no-repeat; | |
height: 300px; | |
margin-bottom: -300px; | |
width: 600px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div.news-slider div.text { | |
display: none; | |
float: left; | |
position: relative; | |
} | |
div.news-slider div.text div { | |
background-color: #404040; | |
border: 1px solid #000000; | |
color: #E0D0C0; |