Subject: Bla.
Post Mood: Blabla.
Comment Settings: Blablabla.
Real-time comments X
Approved comments only XX
No comments XXX
Quick HTML: Bla.
Link
Embed Video
E-Mail
Bold
Italic
Underlined
Use these handy buttons to insert HTML tags or add links.
Post:
HTML you may use:
link
bold
italic
underline
Characters remaining: 32,768
Include Picture:
Browse...
File must be a .gif or .jpg no larger than 150k. Images larger than 464 pixels square will be scaled to fit.
All Done?:
Post It!
Irrelephant
Don't comment | Share this! Leave a comment!Leave It!
Leave your thoughts about: Bla.
Characters remaining: 8,102 No HTML, please.
.
The People Have Spoken0 Comments
Newer Older Jump to Entry: [ 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 ]
daYoshifan
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/
xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xht ml">
<head>
<title>Bla.</title>
<script type="text/javascript" src="http://js.ngfiles.com/ng_pub lish.js?1242705602"></script>
<!-- JS -->
<script type="text/javascript">
// <![CDATA[
Code// = for handling the AJAX login box We're =
embedding// this here, rather than in a .js, because we need to guarantee it's loaded just below var u_cookie
; var = ''pm_count_cookie_name
; var = ''unread_pm_count
var page_is_dynamic = true;
var user_logged_in = true;
function ReturnCookie(this_name) =
{ var
parts
var sub_parts; =
for(var i
i = ><parts.length; i++) {
sub_parts = parts[i].split('=');
sub_parts[0] = sub_parts[0].replace(/\s/, '');
if(sub_parts[0] == this_name) {
return(unescape(sub_parts[1]));
}
}
// If we're here, we didn't find the cookie
return(null);
}
// Set cookies from JavaScript using this - swiped from http://www.dustindiaz.com/top-ten -javascript/
function SetCookie(name, value, expires)
{
if(typeof expires == 'undefined') {
expires = 0;
}
var today = new Date();
today.setTime(today.getTime());
if(expires) {
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date(today.getTime() + expires);
document.cookie = name + '=' + escape(value) + ((expires) ? ';expires='+expires_date.toGMTStr ing() : '' ) + ';path=/;domain=.newgrounds.com';
}
function DivSwap(old_div_id, new_div_id)
{
var old_div = $(old_div_id);
var new_div = $(new_div_id);
if((old_div) && (new_div)) {
new_div.style.display = "block";
old_div.style.display = "none";
}
}
function IsSoftLoggedIn()
{
return((ReturnCookie(String.fromC harCode(118,109,107,49,100,117,53 ,108,56,109)) != null) || (ReturnCookie(String.fromCharCode (118,109,107,108,100,117,53,73,56 ,109)) != null));
}
function LoadLoginBox()
{
// Let's make sure the browser isn't preserving some weird state
if(!(typeof request_in_progress == 'undefined')) {
// This variable may not have been loaded yet, since it's coming from a .js file
request_in_progress = false;
}
// Always see if they've got a username cookie to put as a default value in the login box
var username = ReturnCookie(u_cookie);
if(username != null) {
$('lb_username').value = username;
}
// Also always check for a # of unread PMs, handed off from PHP
if(unread_pm_count != null) {
// Got a value, set it and store it in a cookie
SetUnreadPMCount(unread_pm_count)
;
} else {
// Didn't get a value. See if we've got anything stored from before, in a cookie
var unread_pm_count_cookie = ReturnCookie(pm_count_cookie_name );
if((unread_pm_count_cookie != null) && (unread_pm_count_cookie > 0)) {
SetUnreadPMCount(unread_pm_count_
cookie);
}
}
// Now swap in the appropriate box
if(!(IsSoftLoggedIn())) {
// They're not logged in, so show the login form
DivSwap('loginbox', 'loginbox_notloggedin');
} else {
// They are logged in, so show their account options
// Gotta do this here, so the username displays properly on page refreshes
SetLoggedInUsername(username);
DivSwap('loginbox', 'loginbox_loggedin');
}
}
function SetUnreadPMCount(value)
{
var new_count = '';
if(value > 0) {
new_count = ' (' + FormatNumber(value) + ')';
}
$('unread_pm_count_display').inne rHTML = new_count;
SetCookie(pm_count_cookie_name, value);
}
function SetLoggedInUsername(name)
{
$('loginbox_username').innerHTML = '<a href="http://' + name.toLowerCase() + '.newgrounds.com/">' + name + '</a>';
$(username_fieldname).value = name; // Also set the name in the login text field
}
document.observe('dom:loaded', function() {
new Ajax.Autocompleter('topsearch_ter ms', 'searchhint', '/ajax/searchsuggestion.php', {
onShow: function(e, u) {
$('topsuperbanner').style.visibil ity = 'hidden';
// Positioning is taken care of in CSS. Disregard the search element.
Effect.Appear(u,{duration:0.15});
},