Help - Search - Members - Calendar
Full Version: 'Enter' doesn't work
Forums > Resource Center > Support Center > Xanga Support > Xanga Resolved Topics
hustlerx1
Hm, I recently re-setup my Xanga site and have been adding and customizing several HTML codes, but now my entries look weird. When I press 'ENTER', instead of skipping to the next line, it continues in the same line, without any spaces or anything. How can I fix this so that when I hit 'ctrl' + 'enter', the line will show up on the next one? In my private home, it looks fine but turns out weird on my public preview.

here's my site: http://www.xanga.com/sally_berry

Thanks in advance!!
hustlerx1
I've updated with a new entry today .. does this one still look off? In the last paragraph, everything should be on a new line, but it isn't on my public page.

I'm using IE .. unsure of the version, the one with the tabs.

Here are the codes I'm using (quite long, sorry!)
And thank you!!

CODE


<DIV align="center" valign="middle" style="BORDER-RIGHT: #525252 6px double; BORDER-TOP: #525252 6px double; FILTER: alpha(opacity=100); OVERFLOW: auto; BORDER-LEFT: #525252 6px double; WIDTH: 850px; BORDER-BOTTOM: #525252 6px double; HEIGHT: 625px; BACKGROUND-COLOR:
#ffffff">



<script language="Javascript">
// original by sean http://www.xanga.com/seanmeister
var tds = document.getElementsByTagName("td");
for (var i = 0; i < tds.length; i++){
if (tds[i].width == "200"){
tds[i].parentNode.appendChild(tds[i].cloneNode(true));
tds[i].parentNode.removeChild(tds[i]);
break;
}}
</script>



<!-- begin code provided by createblog.com -->
<style type="text/css">
.blogbody b, .standard b, p b, strong {
/* edits bolded text in your entry */
font-weight: bold;
color: #000000;
}
</style>
<!-- end code provided by createblog.com -->



<script>
// Display Only One Entry

if(location.pathname=="/sally_berry"){
var longer = false;
var tds = document.getElementsByTagName('td');
for(i=0; i<tds.length;i++)
{
booga = tds[i].innerHTML.indexOf('blogheader');
if(booga==11){longer=false;break;}
boogie = tds[i].innerHTML.indexOf('javascript');
if(boogie == 19){longer=true;break;}
}
var tables = tds[i].getElementsByTagName('table');
var numBreaks = 0;
var x = 0;
if(longer==true){x=3;}else{x=1}
for(j=x; j<tables.length;j++)
{
numBreaks += tables[j].getElementsByTagName('br').length;
tables[j].style.display='none';
}
var divs = tds[i].getElementsByTagName('div');
for(j=2+(2*1)-2; j<divs.length;j++)
{
divs[j].style.display='none';
}
var breaks = tds[i].getElementsByTagName('br');
for(j=breaks.length-5-numBreaks;j<breaks.length;j++)
{
breaks[j].style.display='none';
}
var horizontals = tds[i].getElementsByTagName('hr');
var j = horizontals.length-1;
horizontals[j].style.display='none';
}
</script>



<style type=text/css>
table.footer {display: none;}
</style>







<script language=JavaScript>
<!--
var message="Tsk tsk.";
function click(z) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (z.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>







<script type="text/javascript">
<!--
//removes Subscriptions, My Blogrings, Posting Calender, Top Tags Modules
//by Edw @ forum.scriptshelf.com
//supports firefox

// 1 = yes, 0 = no
RemoveSubscriptionsModule = 1;
RemoveMyBlogringsModule = 1;
RemovePostingCalender = 1;
RemoveTopTags = 0;
RemoveTagsInCommentPage = 0;

// DO NOT EDIT BEYOND THIS LINE

//man-made removeNode() for non-IE browser
if(window.Node){
Node.prototype.removeNode=function(removeChildren){
if(removeChildren)
return this.parentNode.removeChild(this);
else{
var range=document.createRange();
range.selectNodeContents(this);
return this.parentNode.replaceChild(range.extractContents(),this);
}
}
}

xUrl = document.URL.toLowerCase();
var re = /xanga.com\b\/[a-zA-Z]{1,}[\da-zA-Z_]{1,}\/[0123456789]+\/[\da-z-]{0,}.html/;
var nothome = /xanga.com\b\/profile.aspx|xanga.com\b\/guestbook.aspx|xanga.com\b\/contentlatest.asp|xanga.com\b\/private\//;

function checkIfModulesExists() {
if (!(xUrl.match(re) || xUrl.match(nothome))) {
return true;
} else {
return false;
}
}

function RemoveModules() {
var subscription = document.getElementById("subTitle").parentNode.parentNode.parentNode.parentNode.parentNode;
var calender= document.getElementById("aspnetForm");
if (RemoveSubscriptionsModule == 1){
subscription.nextSibling.removeNode(true);
subscription.removeNode(true);
}
if (RemoveMyBlogringsModule == 1){
var blogring= calender.previousSibling.previousSibling.previousSibling;
blogring.nextSibling.removeNode(true);
blogring.removeNode(true);
}
if (RemovePostingCalender == 1){
calender.removeNode(true);
}
if(RemoveTopTags == 1){
document.getElementById("xmoduletags").removeNode(true);
}
}
if(RemoveTagsInCommentPage == 1){
if (xUrl.match(re)){
document.getElementById("xmoduletags").removeNode(true);
}
}

if (checkIfModulesExists()) RemoveModules();
//-->
</script>














<!-- Email It Envelope Script by Sherrys_Designs-->
<script language="javascript">
<!--
var links = document.getElementsByTagName ('a');
for (var l = 0; l < links.length; l++) {
str = links[l].innerHTML;
if (str.match (/\d+:\d+ (am|pm)/i)) links[l]
else if (str.match (/email it/i)) links[l].innerHTML = str.replace (/email it/i, "<img src=http://sherryvu.cbstaff.com/sherrys_designs/images/envelope.jpg border='0'>");
}//-->
</script>





<script type="text/javascript">
function adjustSirListHeight()
{
// *** define the height of your SIR-list in the line below
var sirListHeight = '120px';
var allTables = document.getElementsByTagName('tbody');
for (i=0; i < allTables.length; i++)
{
if ((allTables[i].innerHTML.indexOf('Profile') != -1) &&
(allTables[i].innerHTML.toUpperCase().indexOf('<TABLE') == -1))
{
sirlist = allTables[i].lastChild;
temp = sirlist.firstChild.innerHTML;
sirlist.removeChild(sirlist.firstChild);
td = document.createElement('td');
div = document.createElement('div');
div.style.width = '100%';
div.style.height = sirListHeight;
div.style.overflow = 'auto';
div.innerHTML = temp;
td.appendChild(div);
sirlist.appendChild(td);
break;
}
}
}
if (navigator.userAgent.indexOf('Mac') == -1)
if ((document.URL.indexOf('weblogs') == -1) &&
(document.URL.indexOf('guestbook') == -1) &&
(document.URL.indexOf('events') == -1) &&
(document.URL.indexOf('reviews') == -1))
adjustSirListHeight();
</script>












<script type=text/javascript>
function replaceWords()
{
// ***add the words or fragments you wish to replace below
var oldWords = new Array(
"-",
"Post a Comment (optional)",
"Please restrict HTML in your messages to bold, italic, underline, and hyperlinks.",
"And please be nice! Members have the right to delete flames;)",
"Note: your comment will appear in Fireshrieker's local time zone:",
"Help",
"GMT 06:00 (Central Standard [ US, Canada)",
"Give eProps or Post a Comment",
"Give eProps",
"eProps are a currency of good will. Give them whenever you read something you enjoy, but reserve a double dose for exceptional posts.",
"Comment box",
"Click",
);

// *** add the replacing words or fragments below
var newWords = new Array(
"",
"comment",
"",
"",
"",
"",
"",
"",
"",
"",
"comments",
"click",
"",
"");

allTableData = document.getElementsByTagName('td');
allTableHeaders = document.getElementsByTagName('th');

var collections = new Array(allTableData,allTableHeaders);

for (var k = 0; k < collections.length; ++k )
{
for (var i = 0; i < collections[k].length; ++i )
{
if (collections[k][i].innerHTML.indexOf('TABLE') == -1)
{
for ( var n = 0; n < oldWords.length; ++n )
{
var indx = collections[k][i].innerHTML.indexOf(oldWords[n])
while (indx != -1)
{
var replacement = '';
indx = collections[k][i].innerHTML.indexOf(oldWords[n]);
replacement = collections[k][i].innerHTML.replace(oldWords[n], newWords[n]);
collections[k][i].innerHTML = replacement;
break;
}
}
}
}
}
}
replaceWords();
</script>


<script language=javascript>
<!--
var links = document.getElementsByTagName ('a');
for (var l = 0; l < links.length; l++) {
str = links[l].innerHTML;
if (str.match (/\d+:\d+ (am|pm)/i)) links[l]
if (str.match (/\d+:\d+ (am|pm)/i)) links[l]
if (str.match (/\d+:\d+ (am|pm)/i)) links[l].innerHTML = str.replace (/\d+:\d+ (am|pm)/i, "");

}
//-->
</script>



<script language=javascript>
<!--
var links = document.getElementsByTagName ('a');
for (var l = 0; l < links.length; l++) {
str = links[l].innerHTML;
document.write
if (str.match (/\d+:\d+ (am|pm)/i)) links[l]
else if (str.match (/comments/i)) links[l].innerHTML = str.replace (/comments/i, "comments");
else if (str.match (/Next 5/i)) links[l].innerHTML = str.replace (/Next 5/i, "more");
else if (str.match (/Previous 5/i)) links[l].innerHTML = str.replace (/Previous 5/i, "back");
else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "comment");
else if (str.match (/50 eprops/i)) links[l].innerHTML = str.replace (/50 eprops/i, "");
else if (str.match (/49 eprops/i)) links[l].innerHTML = str.replace (/49 eprops/i, "");
else if (str.match (/48 eprops/i)) links[l].innerHTML = str.replace (/48 eprops/i, "");
else if (str.match (/47 eprops/i)) links[l].innerHTML = str.replace (/47 eprops/i, "");
else if (str.match (/46 eprops/i)) links[l].innerHTML = str.replace (/46 eprops/i, "");
else if (str.match (/45 eprops/i)) links[l].innerHTML = str.replace (/45 eprops/i, "");
else if (str.match (/44 eprops/i)) links[l].innerHTML = str.replace (/44 eprops/i, "");
else if (str.match (/43 eprops/i)) links[l].innerHTML = str.replace (/43 eprops/i, "");
else if (str.match (/42 eprops/i)) links[l].innerHTML = str.replace (/42 eprops/i, "");
else if (str.match (/41 eprops/i)) links[l].innerHTML = str.replace (/41 eprops/i, "");
else if (str.match (/40 eprops/i)) links[l].innerHTML = str.replace (/40 eprops/i, "");
else if (str.match (/39 eprops/i)) links[l].innerHTML = str.replace (/39 eprops/i, "");
else if (str.match (/38 eprops/i)) links[l].innerHTML = str.replace (/38 eprops/i, "");
else if (str.match (/37 eprops/i)) links[l].innerHTML = str.replace (/37 eprops/i, "");
else if (str.match (/36 eprops/i)) links[l].innerHTML = str.replace (/36 eprops/i, "");
else if (str.match (/35 eprops/i)) links[l].innerHTML = str.replace (/35 eprops/i, "");
else if (str.match (/34 eprops/i)) links[l].innerHTML = str.replace (/34 eprops/i, "");
else if (str.match (/33 eprops/i)) links[l].innerHTML = str.replace (/33 eprops/i, "");
else if (str.match (/32 eprops/i)) links[l].innerHTML = str.replace (/32 eprops/i, "");
else if (str.match (/31 eprops/i)) links[l].innerHTML = str.replace (/31 eprops/i, "");
else if (str.match (/30 eprops/i)) links[l].innerHTML = str.replace (/30 eprops/i, "");
else if (str.match (/29 eprops/i)) links[l].innerHTML = str.replace (/29 eprops/i, "");
else if (str.match (/28 eprops/i)) links[l].innerHTML = str.replace (/28 eprops/i, "");
else if (str.match (/27 eprops/i)) links[l].innerHTML = str.replace (/27 eprops/i, "");
else if (str.match (/26 eprops/i)) links[l].innerHTML = str.replace (/26 eprops/i, "");
else if (str.match (/25 eprops/i)) links[l].innerHTML = str.replace (/25 eprops/i, "");
else if (str.match (/24 eprops/i)) links[l].innerHTML = str.replace (/24 eprops/i, "");
else if (str.match (/23 eprops/i)) links[l].innerHTML = str.replace (/23 eprops/i, "");
else if (str.match (/22 eprops/i)) links[l].innerHTML = str.replace (/22 eprops/i, "");
else if (str.match (/21 eprops/i)) links[l].innerHTML = str.replace (/21 eprops/i, "");
else if (str.match (/20 eprops/i)) links[l].innerHTML = str.replace (/20 eprops/i, "");
else if (str.match (/19 eprops/i)) links[l].innerHTML = str.replace (/19 eprops/i, "");
else if (str.match (/18 eprops/i)) links[l].innerHTML = str.replace (/18 eprops/i, "");
else if (str.match (/17 eprops/i)) links[l].innerHTML = str.replace (/17 eprops/i, "");
else if (str.match (/16 eprops/i)) links[l].innerHTML = str.replace (/16 eprops/i, "");
else if (str.match (/15 eprops/i)) links[l].innerHTML = str.replace (/15 eprops/i, "");
else if (str.match (/14 eprops/i)) links[l].innerHTML = str.replace (/14 eprops/i, "");
else if (str.match (/13 eprops/i)) links[l].innerHTML = str.replace (/13 eprops/i, "");
else if (str.match (/12 eprops/i)) links[l].innerHTML = str.replace (/12 eprops/i, "");
else if (str.match (/11 eprops/i)) links[l].innerHTML = str.replace (/11 eprops/i, "");
else if (str.match (/10 eprops/i)) links[l].innerHTML = str.replace (/10 eprops/i, "");
else if (str.match (/9 eprops/i)) links[l].innerHTML = str.replace (/9 eprops/i, "");
else if (str.match (/8 eprops/i)) links[l].innerHTML = str.replace (/8 eprops/i, "");
else if (str.match (/7 eprops/i)) links[l].innerHTML = str.replace (/7 eprops/i, "");
else if (str.match (/6 eprops/i)) links[l].innerHTML = str.replace (/6 eprops/i, "");
else if (str.match (/5 eprops/i)) links[l].innerHTML = str.replace (/5 eprops/i, "");
else if (str.match (/4 eprops/i)) links[l].innerHTML = str.replace (/4 eprops/i, "");
else if (str.match (/3 eprops/i)) links[l].innerHTML = str.replace (/3 eprops/i, "");
else if (str.match (/2 eprops/i)) links[l].innerHTML = str.replace (/2 eprops/i, "");
else if (str.match (/1 eprop/i)) links[l].innerHTML = str.replace (/1 eprop/i, "");
else if (str.match (/add eprops/i)) links[l].innerHTML = str.replace (/add eprops/i, "");
else if (str.match (/eprops/i)) links[l].innerHTML = str.replace (/eprops/i, "");
else if (str.match (/eprop/i)) links[l].innerHTML = str.replace (/eprop/i, "");
else if (str.match (/email it/i)) links[l].innerHTML = str.replace (/email it/i, "");
}//-->
</script>

<script>
<!--
var props = document.getElementById("pnlEprops");
if (props){
document.getElementById("rblEprops_3").checked = true;
props.style.display = "none";
}
//--></script>















<script type="text/javascript">
//
// ?004 EasterEgg
//
// For use at Xanga only.
//
// While the date in your blogheader has a fixed format
// (e.g. "Tuesday, March 16, 2004") you may want to use
// another date format, accustomed to *your* preferences.
// This script enables you to apply pretty much any date
// format to your blogheader you like.
//
// Here's how it works:
// The script collects all blogheaders and applies to them
// a format you define by changing the value of the variable
// "dateFormatStr" in the code below. Currently that value is
// set to 'ddd, mm/dd/yy', which will result in a date that
// looks like this: 'Tue, 03/16/04'. If you want to use slashes
// instead of divisions as date separators, go right ahead; you
// can even add HTML to the date format string if you like!:-)
//
// =================
// listing of available constants (using the date
// "Tuesday, March 16, 2004" as an example):
//
// dd = 16
// ddd = Tue
// dddd = Tuesday
//
// mm = 03
// mmm = Mar
// mmmm = March
//
// yy = 04
// yyyy = 2004
//
// =================
//
// You can use any combination of the above constants. Examples:
//
// 'mm/dd/yyyy' will result in '03/16/2004'
// 'mmm dd, yy' will result in 'Mar 16, 04'
// 'mm-dd-yy (dddd)' will result in '03-16-04 (Tuesday)'
// '{ ddd, mmm dd, yyyy }', will result in '{ Tue, Mar 16, 2004 }'
//
// Get the general idea?;-)
//
// Copy this entire code and paste it in the webstats box of your
// Look and Feel page.
//
// You're free to use this script as long as this comment remains
// intact. Future modifications allowed if due credit is given.
//

function formatEntryDate()
{
// ***** adjust the dateFormatStr below as you see fit
// ===================================================
dateFormatStr = '<font color=FF80BF>dd mmmm yyyy<b>,</b> dddd</font>';
// ===================================================


function getMonthNr(sMonth)
{
months = new Array(
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
for (var n = 0; n < months.length; ++n)
{
if (months[n] == sMonth)
{
if ( n + 1 < 10)
return '0' + (n + 1).toString()
else
return (n + 1).toString();
}
}
}

allDivs = document.getElementsByTagName('div');
for (var i = 0; i < allDivs.length; ++i)
{
if (allDivs[i].className == 'blogheader')
{
newDateFormat = dateFormatStr;

// day
entryDate = allDivs[i].innerHTML;
dayLong = entryDate.substr(0, entryDate.indexOf(',')); // dddd
dayShort = dayLong.substr(0, 3); // ddd
tempStr = entryDate.substr(dayLong.length + 1);
dayNr = tempStr.substr(tempStr.indexOf(',') - 2, 2); // dd
newDateFormat = newDateFormat.replace('dddd', dayLong);
newDateFormat = newDateFormat.replace('ddd', dayShort);
newDateFormat = newDateFormat.replace('dd', dayNr);

// month
monthLong = tempStr.substr(1, tempStr.indexOf(',') - 3);// mmmm
monthShort = monthLong.substr(0, 3); // mmm
monthNr = getMonthNr(monthShort); // mm
newDateFormat = newDateFormat.replace('mmmm', monthLong);
newDateFormat = newDateFormat.replace('mmm', monthShort);
newDateFormat = newDateFormat.replace('mm', monthNr);

// year
yearLong = tempStr.substr(tempStr.indexOf(',') + 2); // yyyy
yearShort = yearLong.substr(2); // yy
newDateFormat = newDateFormat.replace('yyyy', yearLong);
newDateFormat = newDateFormat.replace('yy', yearShort);

allDivs[i].innerHTML = newDateFormat;
}
}
}
formatEntryDate();
</script>
tokyo-rose
All your entries look normal to me in Firefox 3.
hustlerx1
Ugh, yes, exactly!! It does look normal until a few lines down the entry. But thank you so much for trying to locate the problem. I'll keep fiddling things around. I don't have anything in the Javascript module (should I..?)

Again, I apppreciate your help [:
hustlerx1
Ok I think I figured it out. So I deleted everything and started adding codes one by one, then checking my public view to see if the line breaks were affected. The 'display one entry' script was the one!! Do you see something wrong with the script? (I'm copying/pasting off your reply ^^*)

Thank you~!!
manny-the-dino
Due to this topic being 2 weeks old & the problem being solved, this topic is Closed & Moved. PM me if you'd like for me to open this. _smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.