MyBB Community Forums

Full Version: HTML not working fully (help please)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i'm trying to make all the HTML codes work fully but there's a problem which i don't know
for example this google html source code
<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>
Google</title><style>body,td,a,p,.h{font-family:arial,sans-serif}.h{color:#36c;font-size:20px}.q{color:#00c}.ts td{padding:0}.ts{border-collapse:collapse}#gbar{height:22px;padding-left:2px}.gbh,.gbd{border-top:1px solid #c9d7f1;font-size:1px}.gbh{height:0;position:absolute;top:24px;width:100%}#gbi,#gbs{background:#fff;lef t:0;position:absolute;top:24px;visibility:hidden;z-index:1000}#gbi{border:1px solid;border-color:#c9d7f1 #36c #36c #a2bae7;z-index:1001}#guser{padding-bottom:7px !important}#gbar,#guser{font-size:13px;padding-top:1px !important}@media all{.gb1,.gb3{height:22px;margin-right:.73em;vertical-align:top}#gbar{float:left}}.gb2{display:block;padding:.2em .5em}a.gb1,a.gb2,a.gb3{color:#00c !important}.gb2,.gb3{text-decoration:none}a.gb2:hover{background:#36c;color:#fff !important}</style><script>window.google={kEI:"83MsSdeDHoKx-Qb80fybAw",kEXPI:"17259,17311,19243",kHL:"en"};
google.y={};google.x=function(e,g){google.y[e.id]=[e,g];return false};function sf(){document.f.q.focus()}
window.clk=function(b,c,d,e,f,g){if(document.images){var a=encodeURIComponent||escape;(new Image).src="/url?sa=T"+(c?"&oi="+a(c):"")+(d?"&cad="+a(d):"")+"&ct="+a(e)+"&cd="+a(f)+(b?"&url="+a(b.replace(/#.*/,"")).replace(/\+/g,"%2B"):"")+"&ei=83MsSdeDHoKx-Qb80fybAw"+g}return true};
window.gbar={};(function(){var b=window.gbar,f,h;b.qs=function(a){var c=window.encodeURIComponent&&(document.forms[0].q||"").value;if(c)a.href=a.href.replace(/([?&])q=[^&]*|$/,function(i,g){return(g||"&")+"q="+encodeURIComponent(c)})};function j(a,c){a.visibility=h?"hidden":"visible";a.left=c+"px"}b.tg=function(a){a=a||window.event;var c=0,i,g=window.navExtra,d=document.getElementById("gbi"),e=a.target||a.srcElement;a.cancelBubble=true;if(!f){f=document.createElement(Array.every||window.createPopup?"iframe":"div");f.frameBorder="0";f.src="#";d.parentNode.appendChild(f).id="gbs";if(g)for(i in g)d.insertBefore(g[i],d.firstChild).className="gb2";document.onclick=b.close}if(e.className!="gb3")e=e.parentNode;do c+=e.offsetLeft;while(e=e.offsetParent);j(d.style,c);f.style.width=d.offsetWidth+"px";f.style.height=d.offsetHeight+"px";j(f.style,c);h=!h};b.close=function(a){h&&b.tg(a)}})();</script></head><body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onload="sf();if(document.images)new Image().src='/images/nav_logo4.png'" topmargin=3 marginheight=3><div id=gbar><nobr><b class=gb1>
    Web</b> <a href="http://images.google.co.uk/imghp?hl=en&tab=wi" onclick=gbar.qs(this) class=gb1>
    Images</a> <a href="http://maps.google.co.uk/maps?hl=en&tab=wl" onclick=gbar.qs(this) class=gb1>
    Maps</a> <a href="http://news.google.co.uk/nwshp?hl=en&tab=wn" onclick=gbar.qs(this) class=gb1>
    News</a> <a href="http://www.google.co.uk/prdhp?hl=en&tab=wf" onclick=gbar.qs(this) class=gb1>
    Shopping</a> <a href="http://mail.google.com/mail/?hl=en&tab=wm" class=gb1>
    Mail</a> <a href="http://www.google.co.uk/intl/en/options/" onclick="this.blur();gbar.tg(event);return !1" class=gb3><u>
    more</u> <small>▼</small></a><div id=gbi> <a href="http://video.google.co.uk/?hl=en&tab=wv" onclick=gbar.qs(this) class=gb2>
        Video</a> <a href="http://groups.google.co.uk/grphp?hl=en&tab=wg" onclick=gbar.qs(this) class=gb2>
        Groups</a> <a href="http://books.google.co.uk/bkshp?hl=en&tab=wp" onclick=gbar.qs(this) class=gb2>
        Books</a> <a href="http://scholar.google.co.uk/schhp?hl=en&tab=ws" onclick=gbar.qs(this) class=gb2>
        Scholar</a> <a href="http://finance.google.co.uk/finance?hl=en&tab=we" onclick=gbar.qs(this) class=gb2>
        Finance</a> <a href="http://blogsearch.google.co.uk/?hl=en&tab=wb" onclick=gbar.qs(this) class=gb2>
        Blogs</a> <div class=gb2><div class=gbd></div></div> <a href="http://uk.youtube.com/?hl=en&tab=w1" onclick=gbar.qs(this) class=gb2>
        YouTube</a> <a href="http://www.google.com/calendar/render?hl=en&tab=wc" class=gb2>
        Calendar</a> <a href="http://picasaweb.google.co.uk/home?hl=en&tab=wq" onclick=gbar.qs(this) class=gb2>
        Photos</a> <a href="http://docs.google.com/?hl=en&tab=wo" class=gb2>
        Documents</a> <a href="http://www.google.co.uk/reader/view/?hl=en&tab=wy" class=gb2>
        Reader</a> <a href="http://sites.google.com/?hl=en&tab=w3" class=gb2>
        Sites</a> <div class=gb2><div class=gbd></div></div> <a href="http://www.google.co.uk/intl/en/options/" class=gb2>
        even more »</a></div> </nobr></div><div class=gbh style=left:0></div><div class=gbh style=right:0></div>
<div align=right id=guser style="font-size:84%;width:1003px; height:24px; padding-left:0; padding-right:0; padding-top:0; padding-bottom:4px" width=100%>&nbsp;</div><center><br clear=all id=lgpd><img alt="Google" height=110 src="/intl/en_uk/images/logo.gif" width=276><br><br><form action="/search" name=f><table cellpadding=0 cellspacing=0><tr valign=top><td width=25%>
        &nbsp;</td><td align=center nowrap><input name=hl type=hidden value=en><input maxlength=2048 name=q size=55 title="Google Search" value=""><br><input name=btnG type=submit value="Google Search"><input name=btnI type=submit value="I'm Feeling Lucky"></td><td nowrap width=25%><font size=-2>
        &nbsp;&nbsp;<a href=/advanced_search?hl=en>Advanced Search</a><br>&nbsp;&nbsp;<a href=/preferences?hl=en>Preferences</a><br>
        &nbsp;&nbsp;<a href=/language_tools?hl=en>Language Tools</a></font></td></tr><tr><td align=center colspan=3><font size=-1><span style="text-align:left">
            Search: <input id=all type=radio name=meta value="" checked><label for=all> 
        the web </label><input id=cty type=radio name=meta value="cr=countryUK|countryGB"><label for=cty> 
        pages from the UK </label></span></font></td></tr></table></form><br><br><font size=-1><a href="/intl/en/ads/">
Advertising&nbsp;Programmes</a> - <a href="/services/">Business Solutions</a> - <a href="/intl/en/about.html">
About Google</a> - <a href=http://www.google.com/ncr>Go to Google.com</a><p id=kbe style="display:none;behavior:url(#default#homePage) url(#default#userData)"><font size=-1><a href="/aclk?sa=L&ai=Bn7wTNXIsSY3VAoXJ-Qao5viHAv3_izCFi8nHBM2tk5cR0IYDEAEYASDBVDgAUL6cocn4_____wFguwY&num=1&sig=AGiWqtxCvrkZdoDHKV64VWG5hehvP4jM0Q&q=/mgyhp.html" onclick=kbs()>
Make Google your homepage</a></p><script>(function(){var b="kbe",a=document.getElementById(b),c="http://www.google.co.uk/",d,g;try{a.load(b);g=a.getAttribute("g")||0}catch(z){}function k(){try{d=a.isHomePage(c)}catch(z){d=0}}k();if(!d&&g<2)a.style.display="block";window.kbs=function(){try{a.setHomePage(c);k();(new Image).src="/gen_204?sa=X&ct=mgyhpb&cd="+!!d;if(!d&&g<9){a.setAttribute("g",++g);a.save(b)}}catch(z){}}})();</script></font><p><font size=-2>
©2008 - <a href="/intl/en/privacy.html">Privacy</a></font></p></center></body><script>if(google.y)google.y.first=[];window.setTimeout(function(){var xjs=document.createElement('script');xjs.src='/extern_js/f/CgJlbhICdWsrMAc4Aiw/R-uGF6TUlks.js';document.getElementsByTagName('head')[0].appendChild(xjs)},0)</script></html>
only some codes would work but not all
any help please ?Sad
What exactly is the problem with your forum?? You'll have to be a bit more specific. For example, what code are you trying to put in that doesn't work?? Are you trying to put Google source code on your forum?? Huh
(2008-11-25, 10:11 PM)Matt_ Wrote: [ -> ]What exactly is the problem with your forum?? You'll have to be a bit more specific. For example, what code are you trying to put in that doesn't work?? Are you trying to put Google source code on your forum?? Huh

i'v used google source code as an example of some codes not working Undecided

image: http://img155.imageshack.us/img155/2503/ddddqd1.jpg
Yeah, so you're trying to add scripts from Google onto your page and I don't think that will work. If you really must show Google on your forum, try:

<iframe src ="http://www.google.com" width="800" height="600"></iframe>