The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

I have a problem regarding to my HTML code.

View previous topic View next topic Go down

Solved I have a problem regarding to my HTML code.

Post by yuufa10182006 on August 14th 2010, 9:25 am

Ok, I'm planning to make a Random Images in my widgets.. But when I put my code in the HTML editor in widget.. And when I hit the save button.. All of my backslash " \ " in my code was gone.. And when I see the result.. I cant see the expexted features that i want to see..

Here's the code that have a backslash: " \ "
Code:


<html>
<head>

</head>
<body>

<div align="center">
<script language="javascript">



var b1dis = "<a href="";
var bdis = ""><img src="";
var edis = " width="150" height="150" alt="Fan Arts by Anime-tion's Members" border="0"></a>";
var rnumb = "";
var img = "";

rnumb += Math.floor(Math.random()*0);
img = rnumb;


//START OF THE IMAGE!!

if (img == "0") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/tokyo-gore-police-t37.htm" +bdis+ "http://i61.servimg.com/u/f61/14/81/45/64/18769_15.jpg"" +edis);
}


if (img == "1") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/akashiya-moka-t1304.htm" +bdis+ "http://sphotos.ak.fbcdn.net/hphotos-ak-snc3/hs262.snc3/27784_1171152819186_1838987297_335190_7179805_n.jpg"" +edis);
}


if (img == "2") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/gakkou-no-kaidan-ghost-stories-t1290.htm" +bdis+ "http://i61.servimg.com/u/f61/14/81/45/64/ghost_11.jpg"" +edis);
}


if (img == "3") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/shakugan-no-shana-t1252.htm" +bdis+ "http://i405.photobucket.com/albums/pp137/shana_009/IMGP5494.jpg"" +edis);
}


if (img == "4") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/miku-hatsune-world-is-mine-t1738.htm" +bdis+ "http://i36.servimg.com/u/f36/15/46/91/72/drawin10.jpg"" +edis);
}


if (img == "5") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/crow-t1741.htm" +bdis+ "http://sphotos.ak.fbcdn.net/hphotos-ak-ash1/hs478.ash1/26173_1160239544993_1797943956_317797_116929_n.jpg"" +edis);
}


if (img == "6") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/ami-t1751.htm" +bdis+ "http://i31.servimg.com/u/f31/14/81/45/64/ami10.jpg"" +edis);
}


if (img == "7") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/mobile-suit-gundam-gundam-00-raiser-t1740.htm" +bdis+ "http://sphotos.ak.fbcdn.net/hphotos-ak-ash2/hs020.ash2/34373_1235023534546_1797943956_457223_409050_n.jpg"" +edis);
}


if (img == "8") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/keikofrankenstein-girl-t1783.htm" +bdis+ "http://i31.servimg.com/u/f31/14/81/45/64/lastsc10.jpg"" +edis);
}


if (img == "9") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/one-of-my-latest-anime-fan-arts-t1797.htm" +bdis+ "http://i33.servimg.com/u/f33/14/63/49/82/renton10.png"" +edis);
}


if (img == "10") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/black-rock-shooter-t1739.htm" +bdis+ "http://i36.servimg.com/u/f36/15/46/91/72/drawin11.jpg"" +edis);
}


if (img == "11") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/blackrock-shooter-t1873.htm" +bdis+ "http://i36.servimg.com/u/f36/15/46/91/72/brs_in10.jpg"" +edis);
}


if (img == "12") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/boredam-imagination-t1898.htm" +bdis+ "http://i139.photobucket.com/albums/q289/suchianu/DSCN2300.jpg"" +edis);
}


if (img == "13") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/shamisen-t1841.htm" +bdis+ "http://i37.tinypic.com/6p1cgk.jpg"" +edis);
}


if (img == "14") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/high-school-of-the-dead-t1874.htm" +bdis+ "http://img704.imageshack.us/img704/125/mmmmcopy.jpg"" +edis);
}


if (img == "15") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/my-first-try-making-fan-art-t1830.htm" +bdis+ "http://i37.tinypic.com/jktvg5.jpg"" +edis);
}


if (img == "16") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/my-first-try-making-fan-art-t1830.htm" +bdis+ "http://i34.tinypic.com/2a4zj87.jpg"" +edis);
}


if (img == "17") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/doggie-doggie-t1899.htm" +bdis+ "http://i38.tinypic.com/mkc6sw.jpg"" +edis);
}


if (img == "") {
document.write(b1dis+ "link_here" +bdis+ "image_here"" +edis);
}


if (img == "") {
document.write(b1dis+ "link_here" +bdis+ "image_here"" +edis);
}


if (img == "") {
document.write(b1dis+ "link_here" +bdis+ "image_here"" +edis);
}


if (img == "") {
document.write(b1dis+ "link_here" +bdis+ "image_here"" +edis);
}



</script>
</div>
<br><br>

<center>
<b>Fan Arts</b><br>
<b>By Anime-tion's Members</b>
</center>


</body>
</html>



And here's the code after saving it:
Code:

<html>
<head>

<script language="javascript">

//START IMAGE

var b1dis = "<a href="";
var bdis = ""><img src="";
var edis = " width="150" height="150" alt="Fan Arts by Anime-tion's Members"border="0"></a>";
var rnumb = "";
var img = "";

rnumb += Math.floor(Math.random()*16);
img = rnumb;




if (img == "0") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/tokyo-gore-police-t37.htm" +bdis+ "http://i61.servimg.com/u/f61/14/81/45/64/18769_15.jpg"" +edis);
}


if (img == "1") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/akashiya-moka-t1304.htm" +bdis+ "http://sphotos.ak.fbcdn.net/hphotos-ak-snc3/hs262.snc3/27784_1171152819186_1838987297_335190_7179805_n.jpg"" +edis);
}


if (img == "2") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/gakkou-no-kaidan-ghost-stories-t1290.htm" +bdis+ "http://i61.servimg.com/u/f61/14/81/45/64/ghost_11.jpg"" +edis);
}


if (img == "3") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/shakugan-no-shana-t1252.htm" +bdis+ "http://i405.photobucket.com/albums/pp137/shana_009/IMGP5494.jpg"" +edis);
}


if (img == "4") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/miku-hatsune-world-is-mine-t1738.htm" +bdis+ "http://i36.servimg.com/u/f36/15/46/91/72/drawin10.jpg"" +edis);
}


if (img == "5") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/crow-t1741.htm" +bdis+ "http://sphotos.ak.fbcdn.net/hphotos-ak-ash1/hs478.ash1/26173_1160239544993_1797943956_317797_116929_n.jpg"" +edis);
}


if (img == "6") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/ami-t1751.htm" +bdis+ "http://i31.servimg.com/u/f31/14/81/45/64/ami10.jpg"" +edis);
}


if (img == "7") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/mobile-suit-gundam-gundam-00-raiser-t1740.htm" +bdis+ "http://sphotos.ak.fbcdn.net/hphotos-ak-ash2/hs020.ash2/34373_1235023534546_1797943956_457223_409050_n.jpg"" +edis);
}


if (img == "8") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/keikofrankenstein-girl-t1783.htm" +bdis+ "http://i31.servimg.com/u/f31/14/81/45/64/lastsc10.jpg"" +edis);
}


if (img == "9") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/one-of-my-latest-anime-fan-arts-t1797.htm" +bdis+ "http://i33.servimg.com/u/f33/14/63/49/82/renton10.png"" +edis);
}


if (img == "10") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/black-rock-shooter-t1739.htm" +bdis+ "http://i36.servimg.com/u/f36/15/46/91/72/drawin11.jpg"" +edis);
}


if (img == "11") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/blackrock-shooter-t1873.htm" +bdis+ "http://i36.servimg.com/u/f36/15/46/91/72/brs_in10.jpg"" +edis);
}


if (img == "12") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/boredam-imagination-t1898.htm" +bdis+ "http://i139.photobucket.com/albums/q289/suchianu/DSCN2300.jpg"" +edis);
}


if (img == "13") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/shamisen-t1841.htm" +bdis+ "http://i37.tinypic.com/6p1cgk.jpg"" +edis);
}


if (img == "14") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/high-school-of-the-dead-t1874.htm" +bdis+ "http://img704.imageshack.us/img704/125/mmmmcopy.jpg"" +edis);
}


if (img == "15") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/my-first-try-making-fan-art-t1830.htm" +bdis+ "http://i37.tinypic.com/jktvg5.jpg"" +edis);
}


if (img == "16") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/my-first-try-making-fan-art-t1830.htm" +bdis+ "http://i34.tinypic.com/2a4zj87.jpg"" +edis);
}


if (img == "17") {
document.write(b1dis+ "http://anime-tion.forumotion.com/fanart-f37/doggie-doggie-t1899.htm" +bdis+ "http://i38.tinypic.com/mkc6sw.jpg"" +edis);
}


if (img == "") {
document.write(b1dis+ "link_here" +bdis+ "image_here"" +edis);
}


if (img == "") {
document.write(b1dis+ "link_here" +bdis+ "image_here"" +edis);
}


if (img == "") {
document.write(b1dis+ "link_here" +bdis+ "image_here"" +edis);
}


if (img == "") {
document.write(b1dis+ "link_here" +bdis+ "image_here"" +edis);
}


</script>

<body><div align="center">

<br><br>
<center>
<b>Fan Arts</b><br>
<b>By Anime-tion's Members</b>
</center>


</div>
</body>
</head>
</html>

Can anyone that can help me?

Thanks in advance guys~~

BTW, I already tried my code in OFFLINE mode and its work fine.. >_<

EDITED: I think here in the forum.. The backslash cant be seen too.. So I added some PIC here in my post~~




NEED HELP GUYS~~ Sad Sad Sad

yuufa10182006
Forumember

Posts : 39
Reputation : 0
Language : English

Back to top Go down

Solved Re: I have a problem regarding to my HTML code.

Post by yuufa10182006 on August 16th 2010, 4:20 pm

wew.. no one is willing to help after 3 days or something? Niweiz guys.. I figure it out.. I use the other coding to have a random image~~ >_<


thanks for viewing anyway~~~
*sigh*

yuufa10182006
Forumember

Posts : 39
Reputation : 0
Language : English

Back to top Go down

Solved Re: I have a problem regarding to my HTML code.

Post by Sanket on August 16th 2010, 8:08 pm

Since this thread appears to be solved, I will lock this thread and mark it as solved.


Sanket Smile


Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum