Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

CajuCLC

[Resolvido] Acentuação não funciona

Recommended Posts

Pessoal, tudo beleza?

 

Estou aqui com um site que os acentos não funcionam quando estão entre <h2></h2> (ou 3, 4, que seja).

O site é esse:

http://tests.multitech.com.br/Eric/testes/light/

 

Este é o código index.php:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http-~~-//www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http-~~-//www.w3.org/1999/xhtml">

<head>

<!-- Title -->
<title>Multitech Informática Áudio e Vídeo</title>

<!-- Meta tags -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<!-- CSS -->
<link rel="stylesheet" type="text/css" media="screen" href="css/light.css" />
   <link rel="stylesheet" type="text/css" media="screen" href="fancybox/jquery.fancybox-1.2.6.css" />

<!-- JavaScript -->
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
   <script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/cufon-core-1.09.js"></script>
<script type="text/javascript" src="js/Museo_500_400.font.js"></script>
   <script type="text/javascript" src="fancybox/jquery.fancybox-1.2.6.pack.js"></script>
   <script type="text/javascript" src="js/custom.js"></script>

<script type="text/javascript">
	Cufon.replace('h2', {hover: true});
	Cufon.replace('h3', {hover: true});
	Cufon.replace('h4', {hover: true});
	Cufon.replace('#gallery #galleryHeader #galleryTitles .current a', {hover: true});
</script>

   <!--[if lte IE 6]>
   	<script src="js/pngfix.js" type="text/javascript"></script>
       <script src="js/ie6fixes.js" type="text/javascript"></script>
   <![endif]-->

</head>

<body>


<div id="header" style="position:relative">
  <div id="headerInner" class="wrapper">

   <h1 id="logo">Multitech</h1>

		<ul id="nav">
	  <li><a href="index.php">Principal</a></li>
	  <li class="current"><a href="contact.html">Contato</a></li>
 </ul><!-- end nav -->

		<div class="clear"></div>

	</div><!-- end headerInner -->
</div><!-- end header -->


<div id="featuredTop"></div>
<div id="featured">
	<div id="featuredInner" class="wrapper">

		<div id="featuredText">
			<h2>Seja Bem Vindo!</h2>
			<h4>Nossa loja virtual fica fechada da Sexta às 18h até Sábado 18h (horário de Salvador).</h4>
		</div><!-- end featuredText -->

		<div id="featuredImage">
			<div id="slides">
				<img src="images/assets/featuredImage1.png" alt="featured image 1" width="398" height="198" />
                   <img src="images/assets/featuredImage2.png" alt="featured image 2" width="398" height="198" />
                   <img src="images/assets/featuredImage3.png" alt="featured image 3" width="398" height="198" />
                   <img src="images/assets/featuredImage4.png" alt="featured image 4" width="398" height="198" />
                   <img src="images/assets/featuredImage5.png" alt="featured image 5" width="398" height="198" />
			</div><!-- end slides -->
			<div id="imageFrame">
               	<span class="fadingButton" id="prevButton"></span>
                   <span class="fadingButton" id="nextButton"></span>
               </div><!-- end imageFrame -->
		</div><!-- end featuredImage -->

	  <div class="clear"></div>

	</div><!-- end featuredInner -->
</div><!-- end featured -->
<div id="featuredBottom"></div>


<div id="content" class="wrapper">

	<div id="main">

		<h3>Mensagem...</h3>

           <?php header("Content-Type: text/html; charset=ISO-8859-1",true);
$random_text = array("“Assim, pois, foram acabados os céus e a terra e todo o seu exército. E, havendo Deus terminado no dia sétimo a sua obra, que fizera, descansou nesse dia de toda a sua obra que tinha feito.” - Gênesis 2:1-2",
                   "Random Text 2",
                   "Random Text 3",
                   "Random Text 4",
                   "Random Text 5");
srand(time());
$sizeof = count($random_text);
$random = (rand()%$sizeof);
print("$random_text[$random]");
?>


	</div><!-- end main -->


	<div class="clear"></div>

	<div id="bottombar">
       <h4 align="center">Nossa loja voltará sábado às 18h (horário de Salvador).</h4>
       <div class="clear"></div>

  </div><!-- end bottombar -->

</div><!-- end content -->


<div id="footerTop"></div>
<div id="footer">
	<div id="footerInner" class="wrapper">



		<p class="disclaimer">
			Todos os direitos reservados <a href="../">Multitech Informática Áudio e Vídeo</a>.
		</p>
		<p class="copyright">
			© 2010 · Multitech Informática.<br />
               Criado por <a href="http-~~-//www.genetic2u.com" target="_blank"> Eric Cavalcanti</a>
		</p>

	</div><!-- end footerInner -->
</div><!-- end footer -->


</body>


</html>

 

O arquivo CSS é esse:

/* RESET */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0;padding: 0;border: 0;outline: 0;font-size: 100%;vertical-align: baseline;background: transparent; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: '';content: none; }
:focus { outline: 0;}
ins { text-decoration: none; }
del { text-decoration: line-through; }
table { border-collapse: collapse;border-spacing: 0; }




/* --------------------------------------------------------- */
/* ---------- TYPOGRAPHY and text COLORS ----------- */
/* --------------------------------------------------------- */


body { font-family: Lucida Sans, "Ludica Grande", "Lucida Sans Unicode", Arial, sans-serif; color: #4c4c4c; font-size: 75%; line-height:1.65em; }
h1, h2, h3, h4 { font-family: Georgia, serif; margin: 0 0 0.9em 0; }
h5, h6 { margin: 0 0 0.9em 0; }
h2 { font-size: 2.50em; color: #64bde3; line-height: 1.22em; }
h3 { font-size: 2em; color: #64bde3; line-height: 1.22em; }
h4 { font-size: 1.33em; color: #404040; line-height: 1.22em; }
h5 { font-size: 1.33em; font-weight: bold; }
h6  { font-size: 1em; font-weight: bold; }
a { text-decoration: none; color: #59a8c9; }
a:hover { color: #4b8eab; }
p { margin-bottom: 1.65em; }
em { font-style: italic; }
strong { font-weight: bold; }
big { font-size: 1.3em; }
small { font-size: 0.83em; text-transform: uppercase; color: #7b7b7b; }

#main ul, #main ol { padding: 0.35em 50px 2em; color: #848484; }
#main ul li, #main ol li { padding: 0 0 1em; }
#main ul { list-style-position: outside; list-style-type: disc; }
#main ol { list-style-position: outside; list-style-type: decimal; }
#main ul.listWithIcons { list-style-type:none; list-style: none; }
#main ul.listWithIcons li { line-height: 29px; background: transparent url(../images/light/yes.png) no-repeat left top; padding: 0 0 1em 50px; }
#main ul.listWithIcons li.no { background: transparent url(../images/light/no.png) no-repeat left top; }

blockquote { padding: 0.35em 50px 2em; color: #848484; }

h1 a, h2 a, h3 a, h5 a, h6 a { text-decoration: none; color: #64bde3; }
h1 a:hover, h2 a:hover, h3 a:hover, h5 a:hover, h6 a:hover { text-decoration: none; color: #59a8c9; }
h4 a { color: #404040; text-decoration: none; }
h4 a:hover { color: #5e5e5e; }
#header h1#logo { margin: 0; }
#featuredText h2, #pageHeaderText h2 { margin: 0 0 0.5em 0; }
#featuredText h4, #pageHeaderText h4 { line-height: 1.65em; margin-bottom: 0; }
#sidebar h5, #sidebar h6 { margin: 0; }

#header #headerInner ul#nav { font-weight: bold; text-transform: uppercase; letter-spacing:0.03em; }
#header #headerInner ul#nav li ul { text-transform: none; }
#header #headerInner ul#nav li a { color: #404040; text-decoration: none; }
#header #headerInner ul#nav li.current a { color: #64bde3; text-decoration: none; }
#header #headerInner ul#nav li a:hover { color: #64bde3; }
#header #headerInner ul#nav li ul li a { color: #404040; font-size: 0.83em; }
#header #headerInner ul#nav li.current ul li a { color: #404040; font-size: 0.83em; }
#header #headerInner ul#nav li.current ul li.current a { color: #64bde3; font-size: 0.83em; }
#header #headerInner ul#nav li ul li a:hover { color: #64bde3; }
#header #headerInner ul#nav li:hover a { color: #64bde3; }
#header #headerInner ul#nav li:hover ul li a { color: #404040; }
#header #headerInner ul#nav li:hover ul li a:hover { color: #64bde3; }

#content #main .tagline { font-weight: bold; color: #404040; }
#content #main .blogPost .tagline { font-size: 0.83em; line-height: 1em; vertical-align: top; }
#content #main .blogPost .metaData { color: #848484; font-size: 0.83em; }
#content #main .blogPost.singlePostHeadNoimg .metaData, #content #main .blogPost.singlePostHead .metaData { font-size: 1em; }
#content #main .blogPost .metaData a { text-decoration: none; color: #404040; }
#content #main .blogPost .metaData a:hover { color: #848484; }
#content #main #pagination a { text-transform: uppercase; font-weight: bold; color: #4c4c4c; }
#content #main #pagination a:hover { color: #678a99; }

#comments .commentlist { color: #404040; }
#comments .commentlist .children { color: #404040; }
#comments .commentlist .comment .comment-body .commentmetadata { font-size: 0.83em; color: #848484; }
#comments .commentlist .comment .comment-body .commentmetadata a { color: #4c4c4c; text-decoration: none; }
#comments .commentlist .comment .comment-body .commentmetadata a:hover { color: #848484; }
#comments .commentlist .comment .comment-body .vcard .commentAuthor { font-size: 0.83em; color: #848484; }
#comments .commentlist .comment .comment-body .vcard .commentAuthor .fn { font-size: 1.2em; font-weight: bold; font-style: normal; color: #64bde3; }
#comments .commentlist .comment .comment-body .vcard .commentAuthor .fn a { text-decoration: none; color: #64bde3; }
#comments .commentlist .comment .comment-body .vcard .commentAuthor .fn a:hover { color: #59a8c9; }

#gallery #galleryHeader #galleryTitles { color: #666666; }
#gallery #galleryHeader #galleryTitles a { text-decoration: none; color: #666666; }
#gallery #galleryHeader #galleryTitles a:hover { color: #848484; }
#gallery #galleryHeader #galleryTitles .current { color: #c6c6c6; font-size: 1.33em; }
#gallery #galleryHeader #galleryTitles .current a { text-decoration: none; color: #404040; }
#gallery #galleryHeader #galleryTitles .current a:hover { color: #5e5e5e; }
#gallery #galleryHeader #galleryTitles .middot { font-size: 1.4em; }
#gallery #galleryHeader .button .highlight { color: #262626; }

#sidebar { color: #848484; }
#sidebar .sidebarWidget .postList .metaData { font-size: 0.83em; }
#sidebar .sidebarWidget .postList .metaData a { text-decoration: none; color: #4c4c4c; }
#sidebar .sidebarWidget .postList .metaData a:hover { color: #848484; }

#bottombar .minipost { color: #848484; font-style: italic; }
#bottombar .tagline { color: #666666; font-style: normal; font-weight: bold; font-size: 0.83em; }

#footer { font-size: 0.83em; color: #5c5c5c; }
#footer a { text-decoration: none; color: #8f8f8f; }
#footer a:hover { color: #5c5c5c; }
#footer #footerInner .disclaimer { color: #8f8f8f; }
#footer #footerInner .disclaimer a { text-decoration: none; color: #5c5c5c; }
#footer #footerInner .disclaimer a:hover { color: #8f8f8f; }




/* --------------------------------------------------------- */
/* --------------------- MAIN styles --------------------- */
/* --------------------------------------------------------- */


body { background: #f9f9f9 url(../images/light/backgroundTile.png) repeat 50% 0; }
.wrapper{ width: 900px; padding: 0 50px; margin:0 auto; }
.clear{ clear:both;height:0;font-size:0;margin:0;padding:0;visibility:hidden; }
.alignleft{ float:left; }
.alignright{ float:right; }
.aligncenter{ display:block;margin:0 auto; }
#main img.alignleft { margin: 0 20px 20px 0; }
#main img.alignright { margin: 0 0 20px 20px; }




/* --------------------------------------------------------- */
/* ----------------------- HEADER ----------------------- */
/* --------------------------------------------------------- */


#header { width: 100%; }
#header #headerInner h1#logo { background: transparent url(../images/light/Logo2.png) no-repeat right top; float: right; display: block; letter-spacing: -1000em; overflow: hidden; text-indent: -9999em; width: 254px; height: 52px; }
#header #headerInner{ background: transparent url(../images/light/headerBg.png) no-repeat left bottom; padding: 50px 50px 36px; }
#header #headerInner ul#nav { float: left; margin: 24px 0 0; position: relative; }
#header #headerInner ul#nav li { float: left; margin: 0 30px 0 0; }
#header #headerInner ul#nav li ul { position: absolute; display: none; left: 0; top: -28px; width: 550px; padding: 0 0 10px; }
#header #headerInner ul#nav li ul li { display: block; float: left; margin: 0 25px 0 0; }
#header #headerInner ul#nav li:hover ul { display: block; }





/* --------------------------------------------------------- */
/* ----------- FEATURED and PAGE HEADER ----------- */
/* --------------------------------------------------------- */


#featuredTop { width: 100%; height: 13px; margin: -12px 0 0; background: transparent url(../images/light/featuredBgTopTile.png) repeat-x; position: relative; }
#featuredBottom { width: 100%; height: 13px; margin: 0 0 -12px; background: transparent url(../images/light/featuredBgBottomTile.png) repeat-x; position: relative; z-index: 2; }
#featured { width: 100%; background: #e8e8e8; border-top: 1px solid #ffffff; border-bottom: 1px solid #ffffff; }
#featured #featuredInner { padding: 37px 50px; background: transparent url(../images/light/featuredBgShine.png) no-repeat left top; margin: -1px auto; }
#featured #featuredInner #featuredText { width: 420px; float: left; margin-top: 28px; }
#featured #featuredInner #pageHeaderText { width: 100%; margin: 14px 0; }
#featured #featuredInner #featuredImage { width: 420px; height: 220px; float: right; overflow: hidden; position: relative; }
#featured #featuredInner #featuredImage #imageFrame { width: 420px; height: 220px; position: absolute; top: 0; left: 0; background: transparent url(../images/light/featuredImgFrame.png) no-repeat top left; z-index: 99; }
#featured #featuredInner #featuredImage #imageFrame #prevButton { display: block; width: 29px; height: 38px; position: absolute; left: 0; top: 92px; background: transparent url(../images/light/featuredPrevBtn.png) no-repeat; cursor: pointer; z-index: 100; }
#featured #featuredInner #featuredImage #imageFrame #nextButton { display: block; width: 29px; height: 38px; position: absolute; right: 0; top: 92px; background: transparent url(../images/light/featuredNextBtn.png) no-repeat; cursor: pointer; z-index: 100; }
#featured #featuredInner #featuredImage #slides { width: 398px; height: 198px; margin: 11px; }





/* --------------------------------------------------------- */
/* ----------------------- CONTENT ---------------------- */
/* --------------------------------------------------------- */



#content { padding: 46px 50px 6px 50px; background: transparent url(../images/light/contentBg.png) no-repeat left top; position: relative; z-index: 1; }
#content #main { width: 580px; float: left; margin: 0 60px 0 0; padding: 0 0 35px; }
#content #main .blogPost { border-bottom: 1px solid #d9d9d9; padding-bottom: 24px; margin-bottom: 25px; }
#content #main .blogPost .postTitle { margin: -6px 0 5px 0; }
#content #main .blogPost .metaData { margin: 0 0 18px 0; display: inline-block; }
#content #main .postHead { padding-left: 175px; position: relative; min-height: 140px; }
* html #content #main .postHead { height: 140px; } /* IE6 hack */
#content #main .postHead .postImage { position: absolute; left: 0; }
#content #main .singlePostHead { padding-left: 220px; position: relative; min-height: 195px; }
* #content #main .singlePostHead { height: 195px; } /* IE6 hack */
#content #main .singlePostHead .postImage { position: absolute; left: 0; }
#content #main .singlePost { border-bottom: 1px solid #d9d9d9; }
#content #main #pagination { margin: -5px 0 12px; }
#content #main #pagination a { display: block; float: left; margin: 0 12px 0 0; width: 23px; height: 26px; line-height: 26px; text-align: center;  }
#content #main #pagination a.current { background: transparent url(../images/light/paginationLinkBackground.png) no-repeat; }
#content #main #pagination a.paginationLastLink { margin: 0; width: auto; }

#content.fullWidth #main { float: none; width: 100%; }





/* --------------------------------------------------------- */
/* ----------------------- GALLERY ---------------------- */
/* --------------------------------------------------------- */



#gallery { width: 100%; margin: 0 0 12px 0; }
#gallery #galleryHeader { margin: 0 0 30px; text-align: center; background: transparent url(../images/light/galleryHeaderBgTile.png) repeat-x center top; }
#gallery #galleryHeader .button { display: block; width: 78px; height: 34px; background: transparent url(../images/light/button.png) no-repeat; line-height: 34px; font-size: 0.83em; text-transform: uppercase; text-align: center; cursor: pointer; position: relative; }
#gallery #galleryHeader .button .highlight { display: block; width: 78px; height: 34px; position: absolute; top: 0; left: 0; background: transparent url(../images/light/buttonHighlight.png) no-repeat; }
#gallery #galleryHeader #prevButton { float: left; }
#gallery #galleryHeader #nextButton { float: right; }
#gallery #galleryHeader #galleryTitles { line-height: 34px; text-align: center; }
#gallery #galleryHeader .galleryTitle { margin: 0 18px; }
#gallery #slideContainer { width: 900px; }
#gallery #slideContainer .slide { width: 900px; }
#gallery #slideContainer .slide .galleryImage { float: left; margin: 0 40px 25px 0; position: relative; overflow: hidden; }
#gallery #slideContainer .slide .alt { float: left; margin: 0 0 25px 0; }
#gallery #slideContainer .slide .galleryImage .zoomButton { width: 97px; height: 95px; display: block; position: absolute; left: 0; top: 50px; background: transparent url(../images/light/galleryButtonLeft.png) no-repeat; }
#gallery #slideContainer .slide .galleryImage .descriptionButton { width: 98px; height: 95px; display: block; position: absolute; right: 0; top: 50px; background: transparent url(../images/light/galleryButtonRight.png) no-repeat; }

#description { background: #0a0a0a url(../images/light/backgroundTile.png) repeat 50% 0; width: 580px; margin: 0 auto; padding: 45px 45px 30px; }
#description img.alignleft { margin: 0 25px 25px 0; }
#description img.alignright { margin: 0 0 25px 25px; }





/* --------------------------------------------------------- */
/* ----------------------- SIDEBAR ---------------------- */
/* --------------------------------------------------------- */



#sidebar { width: 260px; float:right; padding: 0 0 5px 0; }
#sidebar .sidebarWidget { margin: 0 0 37px; }
#sidebar .sidebarWidget .widgetTitle { margin: 0 0 21px 0; }
#sidebar ul li { margin: 0 0 8px; }





/* --------------------------------------------------------- */
/* --------------------- BOTTOMBAR -------------------- */
/* --------------------------------------------------------- */



#bottombar { background: transparent url(../images/light/bottombarBg.png) no-repeat center top; overflow:hidden; padding: 38px 0 0; }
#bottombar .minipost { float: left; width: 260px; margin: 0 60px 0 0; }
#bottombar .lastChild { margin: 0; }
* html #bottombar .lastChild { margin-right: 0 !important; width: 250px !important; }
#bottombar .minipost .minipostIcon { margin: 0 10px 3px 0; }
#bottombar .minipost .minipostTitle { margin: 0 0 11px 0; }
#bottombar .minipost p { clear: both; }





/* --------------------------------------------------------- */
/* ------------------------ FOOTER ----------------------- */
/* --------------------------------------------------------- */



#footerTop { width: 100%; height: 13px; background: transparent url(../images/light/featuredBgTopTile.png) repeat-x; }
#footer { width: 100%; background: #e8e8e8; line-height: 1.4em; border-top: 1px solid #ffffff; }
#footer #footerInner { padding: 35px 50px 24px; text-align: center; }
#footer #social { margin: 0 0 24px 0; }
#footer #social li { display: inline; }
#footer #social a { margin: 0 0 0 33px; display: inline-block; position: relative; }
#footer #social li:first-child a { margin: 0; }
#footer #footerInner #social a .tooltip { position: absolute; top: -58px; left: -57px; display: none; width: 146px; height: 39px; line-height: 26px; background: transparent url(../images/light/tooltipBg.png) no-repeat; }
#footer #footerInner .disclaimer, #footer #footerInner .copyright { padding: 0 180px; }





/* --------------------------------------------------------- */
/* ------------------------ COMMENTS ----------------------- */
/* --------------------------------------------------------- */



#comments, #respond { margin: 40px 0 0; }
#comments .commentlist { list-style-type: none; padding: 0; }
#comments .commentlist .comment { border-bottom: 1px solid #d9d9d9; padding: 25px 0; }
#comments .commentlist .comment .comment-body { position: relative; padding: 0 0 0 100px; }
#comments .commentlist .comment .comment-body .avatar { position: absolute; left: 0; top: 0; }
* html #comments .commentlist .comment .comment-body .avatar { left: -100px; } /* IE6 hack */
#comments .commentlist .comment .children { padding: 0 0 0 60px; list-style-type: none; }
#comments .commentlist .comment .children .comment { border-top: 1px solid #d9d9d9; border-bottom: none; padding: 25px 0 0; margin: 25px 0 0;}





/* --------------------------------------------------------- */
/* -------------------- FORMS AND BUTTONS ------------------- */
/* --------------------------------------------------------- */



form .button { display: block; width: 78px; height: 34px; background: transparent url(../images/light/button.png) no-repeat; line-height: 34px; font-size: 0.83em; text-transform: uppercase; text-align: center; cursor: pointer; position: relative; }
#sidebar form .button { float: right; }
form .button input.highlight { display: block; width: 78px; height: 34px; padding: 0; margin: 0; position: absolute; top: 0; left: 0; background: transparent url(../images/light/buttonHighlight.png) no-repeat; outline: none; border: none; text-transform: uppercase; font-size: 1em; font-family: Lucida Sans, "Ludica Grande", "Lucida Sans Unicode", Arial, sans-serif; color: #262626; cursor: pointer; }
input { width: 244px; background: transparent url(../images/light/inputBg.png) no-repeat; border: none; outline: none; padding: 9px 8px; color: #7B7B7B; font-family: Lucida Sans, "Ludica Grande", "Lucida Sans Unicode", Arial, sans-serif; font-size: 12px; line-height: 12px; }
input#s { width: 166px; float: left; margin: 2px 0 0; }
textarea { width: 564px; height: 126px; padding: 12px 8px; background: transparent url(../images/light/textareaBg.png) no-repeat; border: none; outline: none; color: #7B7B7B; font-family: Lucida Sans, "Ludica Grande", "Lucida Sans Unicode", Arial, sans-serif; font-size: 1em; line-height: 1.65em; }
#main input { margin: 0 15px 0 0; }
#contactForm { margin: 35px 0 0; }
#ajaxResponse { padding: 20px 0 0; position: relative; }
#ajaxResponse #loaderIcon { visibility: hidden; background: transparent url(../images/light/ajax-loader.gif) no-repeat; display:block; width: 16px; height: 16px; }
#ajaxResponse #loaderIcon2 { position: absolute; top: -26px; left: 90px; background: transparent url(../images/light/ajax-loader.gif) no-repeat; display:block; width: 16px; height: 16px; }
#ajaxResponse span.error { display: block; height: 30px; line-height: 30px; padding: 0 0 0 40px; background: transparent url(../images/light/no.png) no-repeat left top; font-size: 0.83em; }
#ajaxResponse span.success { display: block; height: 30px; line-height: 30px; padding: 0 0 0 40px; background: transparent url(../images/light/yes.png) no-repeat left top; font-size: 0.83em; }

O que estou fazendo de errado?

Os acentos não aparecem.

Se eu tiro de dentro do <h> ele funciona.

Se tiro isso:

<script type="text/javascript">
		Cufon.replace('h2', {hover: true});
		Cufon.replace('h3', {hover: true});
		Cufon.replace('h4', {hover: true});
		Cufon.replace('#gallery #galleryHeader #galleryTitles .current a', {hover: true});
	</script>

Também funciona.

 

Mas preciso ele com um visual legal.

Valeu.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Peço que removava essa linha

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

e coloque essa abaixo

 

<!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/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Espero ter ajudado

Compartilhar este post


Link para o post
Compartilhar em outros sites

Se coloco UTF8, os acentos nao aparecem.

 

 

De qualquer forma vou testar. Estou num micro sem editor, sem ftp.

jaja digo o resultado.

Compartilhar este post


Link para o post
Compartilhar em outros sites

esta linha

<h4>
            “Assim, pois, foram acabados os céus e a terra e todo o seu exército. E, havendo Deus terminado no dia sétimo a sua obra, que fizera, descansou nesse dia de toda a sua obra que tinha feito.” - Gênesis 2:1-2</h4>

Substitua as apas pelas aspas comuns "

 

 

 

e que car***ada de <div> em branco hein, amigão.

Compartilhar este post


Link para o post
Compartilhar em outros sites

 

Não funcionou não.

Ficou na mesma.

 

então vo pesquisar ja achei o tema e fiz o download estou fazendo alguns teste ate amanha eu psto uma resposta aqui

 

Valeu mesmo Daniel.

Eu acho que tem algo com esse arquivo:

cufon-core-1.09.js

 

Se você remover essa parte do index.php fica normal:

        <script type="text/javascript">
               Cufon.replace('h2', {hover: true});
               Cufon.replace('h3', {hover: true});
               Cufon.replace('h4', {hover: true});
               Cufon.replace('#gallery #galleryHeader #galleryTitles .current a', {hover: true});
       </script>

 

Mas vai perceber que os textos entre <h> ficam mais feios.

Compartilhar este post


Link para o post
Compartilhar em outros sites

esta linha

<h4>
            “Assim, pois, foram acabados os céus e a terra e todo o seu exército. E, havendo Deus terminado no dia sétimo a sua obra, que fizera, descansou nesse dia de toda a sua obra que tinha feito.” - Gênesis 2:1-2</h4>

Substitua as apas pelas aspas comuns "

 

 

 

e que car***ada de <div> em branco hein, amigão.

 

Nao mudou nada. Ainda fica sem acentos.

Olha oq postei acima.

 

Edit:

Não é so nessa parte do PHP que da isso nao.

Tudo que tem acento e está dentro de algum <h2> <h3> fica sem acento.

So tirar o <h2> e fica beleza.

 

 

Edit2:

Tem algo com isso:

 

<script type="text/javascript" src="js/cufon-core-1.09.js"></script>

Se removo, fica normal os textos. Se deixo ele da uma arredondada e então nao aparece os acentos.

Codigo dele (algo do Cufon).:

 

/*
 * Copyright (c) 2009 Simo Kinnunen.
 * Licensed under the MIT license.
 *
 * @version 1.09
 */
var Cufon=(function(){var m=function(){return m.replace.apply(null,arguments)};var x=m.DOM={ready:(function(){var C=false,E={loaded:1,complete:1};var B=[],D=function(){if(C){return}C=true;for(var F;F=B.shift();F()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",D,false);window.addEventListener("pageshow",D,false)}if(!window.opera&&document.readyState){(function(){E[document.readyState]?D():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");D()}catch(F){setTimeout(arguments.callee,1)}})()}q(window,"load",D);return function(F){if(!arguments.length){D()}else{C?F():B.push(F)}}})(),root:function(){return document.documentElement||document.body}};var n=m.CSS={Size:function(C,B){this.value=parseFloat(C);this.unit=String(C).match(/[a-z%]*$/)[0]||"px";this.convert=function(D){return D/B*this.value};this.convertFrom=function(D){return D/this.value*B};this.toString=function(){return this.value+this.unit}},addClass:function(C,B){var D=C.className;C.className=D+(D&&" ")+B;return C},color:j(function(C){var B={};B.color=C.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(E,D,F){B.opacity=parseFloat(F);return"rgb("+D+")"});return B}),fontStretch:j(function(B){if(typeof B=="number"){return B}if(/%$/.test(B)){return parseFloat(B)/100}return{"ultra-condensed":0.5,"extra-condensed":0.625,condensed:0.75,"semi-condensed":0.875,"semi-expanded":1.125,expanded:1.25,"extra-expanded":1.5,"ultra-expanded":2}[B]||1}),getStyle:function(C){var B=document.defaultView;if(B&&B.getComputedStyle){return new a(B.getComputedStyle(C,null))}if(C.currentStyle){return new a(C.currentStyle)}return new a(C.style)},gradient:j(function(F){var G={id:F,type:F.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},C=F.substr(F.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var E=0,B=C.length,D;E<B;++E){D=C[E].split("=",2).reverse();G.stops.push([D[1]||E/(B-1),D[0]])}return G}),quotedList:j(function(E){var D=[],C=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,B;while(B=C.exec(E)){D.push(B[3]||B[1])}return D}),recognizesMedia:j(function(G){var E=document.createElement("style"),D,C,B;E.type="text/css";E.media=G;try{E.appendChild(document.createTextNode("/**/"))}catch(F){}C=g("head")[0];C.insertBefore(E,C.firstChild);D=(E.sheet||E.styleSheet);B=D&&!D.disabled;C.removeChild(E);return B}),removeClass:function(D,C){var B=RegExp("(?:^|\\s+)"+C+"(?=\\s|$)","g");D.className=D.className.replace(B,"");return D},supports:function(D,C){var B=document.createElement("span").style;if(B[D]===undefined){return false}B[D]=C;return B[D]===C},textAlign:function(E,D,B,C){if(D.get("textAlign")=="right"){if(B>0){E=" "+E}}else{if(B<C-1){E+=" "}}return E},textShadow:j(function(F){if(F=="none"){return null}var E=[],G={},B,C=0;var D=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(B=D.exec(F)){if(B[0]==","){E.push(G);G={};C=0}else{if(B[1]){G.color=B[1]}else{G[["offX","offY","blur"][C++]]=B[2]}}}E.push(G);return E}),textTransform:(function(){var B={uppercase:function(C){return C.toUpperCase()},lowercase:function(C){return C.toLowerCase()},capitalize:function(C){return C.replace(/\b./g,function(D){return D.toUpperCase()})}};return function(E,D){var C=B[D.get("textTransform")];return C?C(E):E}})(),whiteSpace:(function(){var D={inline:1,"inline-block":1,"run-in":1};var C=/^\s+/,B=/\s+$/;return function(H,F,G,E){if(E){if(E.nodeName.toLowerCase()=="br"){H=H.replace(C,"")}}if(D[F.get("display")]){return H}if(!G.previousSibling){H=H.replace(C,"")}if(!G.nextSibling){H=H.replace(B,"")}return H}})()};n.ready=(function(){var B=!n.recognizesMedia("all"),E=false;var D=[],H=function(){B=true;for(var K;K=D.shift();K()){}};var I=g("link"),J=g("style");function C(K){return K.disabled||G(K.sheet,K.media||"screen")}function G(M,P){if(!n.recognizesMedia(P||"all")){return true}if(!M||M.disabled){return false}try{var Q=M.cssRules,O;if(Q){search:for(var L=0,K=Q.length;O=Q[L],L<K;++L){switch(O.type){case 2:break;case 3:if(!G(O.styleSheet,O.media.mediaText)){return false}break;default:break search}}}}catch(N){}return true}function F(){if(document.createStyleSheet){return true}var L,K;for(K=0;L=I[K];++K){if(L.rel.toLowerCase()=="stylesheet"&&!C(L)){return false}}for(K=0;L=J[K];++K){if(!C(L)){return false}}return true}x.ready(function(){if(!E){E=n.getStyle(document.body).isUsable()}if(B||(E&&F())){H()}else{setTimeout(arguments.callee,10)}});return function(K){if(B){K()}else{D.push(K)}}})();function s(D){var C=this.face=D.face,B={"\u0020":1,"\u00a0":1,"\u3000":1};this.glyphs=D.glyphs;this.w=D.w;this.baseSize=parseInt(C["units-per-em"],10);this.family=C["font-family"].toLowerCase();this.weight=C["font-weight"];this.style=C["font-style"]||"normal";this.viewBox=(function(){var F=C.bbox.split(/\s+/);var E={minX:parseInt(F[0],10),minY:parseInt(F[1],10),maxX:parseInt(F[2],10),maxY:parseInt(F[3],10)};E.width=E.maxX-E.minX;E.height=E.maxY-E.minY;E.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")};return E})();this.ascent=-parseInt(C.ascent,10);this.descent=-parseInt(C.descent,10);this.height=-this.ascent+this.descent;this.spacing=function(L,N,E){var O=this.glyphs,M,K,G,P=[],F=0,J=-1,I=-1,H;while(H=L[++J]){M=O[H]||this.missingGlyph;if(!M){continue}if(K){F-=G=K[H]||0;P[I]-=G}F+=P[++I]=~~(M.w||this.w)+N+(B[H]?E:0);K=M.k}P.total=F;return P}}function f(){var C={},B={oblique:"italic",italic:"oblique"};this.add=function(D){(C[D.style]||(C[D.style]={}))[D.weight]=D};this.get=function(H,I){var G=C[H]||C[B[H]]||C.normal||C.italic||C.oblique;if(!G){return null}I={normal:400,bold:700}[I]||parseInt(I,10);if(G[I]){return G[I]}var E={1:1,99:0}[I%100],K=[],F,D;if(E===undefined){E=I>400}if(I==500){I=400}for(var J in G){if(!k(G,J)){continue}J=parseInt(J,10);if(!F||J<F){F=J}if(!D||J>D){D=J}K.push(J)}if(I<F){I=F}if(I>D){I=D}K.sort(function(M,L){return(E?(M>=I&&L>=I)?M<L:M>L:(M<=I&&L<=I)?M>L:M<L)?-1:1});return G[K[0]]}}function r(){function D(F,G){if(F.contains){return F.contains(G)}return F.compareDocumentPosition(G)&16}function B(G){var F=G.relatedTarget;if(!F||D(this,F)){return}C(this,G.type=="mouseover")}function E(F){C(this,F.type=="mouseenter")}function C(F,G){setTimeout(function(){var H=d.get(F).options;m.replace(F,G?h(H,H.hover):H,true)},10)}this.attach=function(F){if(F.onmouseenter===undefined){q(F,"mouseover",B);q(F,"mouseout",B)}else{q(F,"mouseenter",E);q(F,"mouseleave",E)}}}function u(){var C=[],D={};function B(H){var E=[],G;for(var F=0;G=H[F];++F){E[F]=C[D[G]]}return E}this.add=function(F,E){D[F]=C.push(E)-1};this.repeat=function(){var E=arguments.length?B(arguments):C,F;for(var G=0;F=E[G++];){m.replace(F[0],F[1],true)}}}function A(){var D={},B=0;function C(E){return E.cufid||(E.cufid=++B)}this.get=function(E){var F=C(E);return D[F]||(D[F]={})}}function a(B){var D={},C={};this.extend=function(E){for(var F in E){if(k(E,F)){D[F]=E[F]}}return this};this.get=function(E){return D[E]!=undefined?D[E]:B[E]};this.getSize=function(F,E){return C[F]||(C[F]=new n.Size(this.get(F),E))};this.isUsable=function(){return !!B}}function q(C,B,D){if(C.addEventListener){C.addEventListener(B,D,false)}else{if(C.attachEvent){C.attachEvent("on"+B,function(){return D.call(C,window.event)})}}}function v(C,B){var D=d.get(C);if(D.options){return C}if(B.hover&&B.hoverables[C.nodeName.toLowerCase()]){b.attach(C)}D.options=B;return C}function j(B){var C={};return function(D){if(!k(C,D)){C[D]=B.apply(null,arguments)}return C[D]}}function c(F,E){var B=n.quotedList(E.get("fontFamily").toLowerCase()),D;for(var C=0;D=B[C];++C){if(i[D]){return i[D].get(E.get("fontStyle"),E.get("fontWeight"))}}return null}function g(B){return document.getElementsByTagName(B)}function k(C,B){return C.hasOwnProperty(B)}function h(){var C={},B,F;for(var E=0,D=arguments.length;B=arguments[E],E<D;++E){for(F in B){if(k(B,F)){C[F]=B[F]}}}return C}function o(E,M,C,N,F,D){var K=document.createDocumentFragment(),H;if(M===""){return K}var L=N.separate;var I=M.split(p[L]),B=(L=="words");if(B&&t){if(/^\s/.test(M)){I.unshift("")}if(/\s$/.test(M)){I.push("")}}for(var J=0,G=I.length;J<G;++J){H=z[N.engine](E,B?n.textAlign(I[J],C,J,G):I[J],C,N,F,D,J<G-1);if(H){K.appendChild(H)}}return K}function l(D,M){var C=D.nodeName.toLowerCase();if(M.ignore[C]){return}var E=!M.textless[C];var B=n.getStyle(v(D,M)).extend(M);var F=c(D,B),G,K,I,H,L,J;if(!F){return}for(G=D.firstChild;G;G=I){K=G.nodeType;I=G.nextSibling;if(E&&K==3){if(H){H.appendData(G.data);D.removeChild(G)}else{H=G}if(I){continue}}if(H){D.replaceChild(o(F,n.whiteSpace(H.data,B,H,J),B,M,G,D),H);H=null}if(K==1){if(G.firstChild){if(G.nodeName.toLowerCase()=="cufon"){z[M.engine](F,null,B,M,G,D)}else{arguments.callee(G,M)}}J=G}}}var t=" ".split(/\s+/).length==0;var d=new A();var b=new r();var y=new u();var e=false;var z={},i={},w={autoDetect:false,engine:null,forceHitArea:false,hover:false,hoverables:{a:true},ignore:{applet:1,canvas:1,col:1,colgroup:1,head:1,iframe:1,map:1,optgroup:1,option:1,script:1,select:1,style:1,textarea:1,title:1,pre:1},printable:true,selector:(window.Sizzle||(window.jQuery&&function(B){return jQuery(B)})||(window.dojo&&dojo.query)||(window.Ext&&Ext.query)||(window.YAHOO&&YAHOO.util&&YAHOO.util.Selector&&YAHOO.util.Selector.query)||(window.$$&&function(B){return $$(B)})||(window.$&&function(B){return $(B)})||(document.querySelectorAll&&function(B){return document.querySelectorAll(B)})||g),separate:"words",textless:{dl:1,html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:"none"};var p={words:/\s/.test("\u00a0")?/[^\S\u00a0]+/:/\s+/,characters:"",none:/^/};m.now=function(){x.ready();return m};m.refresh=function(){y.repeat.apply(y,arguments);return m};m.registerEngine=function(C,B){if(!B){return m}z[C]=B;return m.set("engine",C)};m.registerFont=function(D){if(!D){return m}var B=new s(D),C=B.family;if(!i[C]){i[C]=new f()}i[C].add(B);return m.set("fontFamily",'"'+C+'"')};m.replace=function(D,C,B){C=h(w,C);if(!C.engine){return m}if(!e){n.addClass(x.root(),"cufon-active cufon-loading");n.ready(function(){n.addClass(n.removeClass(x.root(),"cufon-loading"),"cufon-ready")});e=true}if(C.hover){C.forceHitArea=true}if(C.autoDetect){delete C.fontFamily}if(typeof C.textShadow=="string"){C.textShadow=n.textShadow(C.textShadow)}if(typeof C.color=="string"&&/^-/.test(C.color)){C.textGradient=n.gradient(C.color)}else{delete C.textGradient}if(!B){y.add(D,arguments)}if(D.nodeType||typeof D=="string"){D=[D]}n.ready(function(){for(var F=0,E=D.length;F<E;++F){var G=D[F];if(typeof G=="string"){m.replace(C.selector(G),C,true)}else{l(G,C)}}});return m};m.set=function(B,C){w[B]=C;return m};return m})();Cufon.registerEngine("canvas",(function(){var b=document.createElement("canvas");if(!b||!b.getContext||!b.getContext.apply){return}b=null;var a=Cufon.CSS.supports("display","inline-block");var e=!a&&(document.compatMode=="BackCompat"||/frameset|transitional/i.test(document.doctype.publicId));var f=document.createElement("style");f.type="text/css";f.appendChild(document.createTextNode(("cufon{text-indent:0;}@media screen,projection{cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;"+(e?"":"font-size:1px;line-height:1px;")+"}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}"+(a?"cufon canvas{position:relative;}":"cufon canvas{position:absolute;}")+"}@media print{cufon{padding:0;}cufon canvas{display:none;}}").replace(/;/g,"!important;")));document.getElementsByTagName("head")[0].appendChild(f);function d(p,h){var n=0,m=0;var g=[],o=/([mrvxe])([^a-z]*)/g,k;generate:for(var j=0;k=o.exec(p);++j){var l=k[2].split(",");switch(k[1]){case"v":g[j]={m:"bezierCurveTo",a:[n+~~l[0],m+~~l[1],n+~~l[2],m+~~l[3],n+=~~l[4],m+=~~l[5]]};break;case"r":g[j]={m:"lineTo",a:[n+=~~l[0],m+=~~l[1]]};break;case"m":g[j]={m:"moveTo",a:[n=~~l[0],m=~~l[1]]};break;case"x":g[j]={m:"closePath"};break;case"e":break generate}h[g[j].m].apply(h,g[j].a)}return g}function c(m,k){for(var j=0,h=m.length;j<h;++j){var g=m[j];k[g.m].apply(k,g.a)}}return function(V,w,P,t,C,W){var k=(w===null);if(k){w=C.getAttribute("alt")}var A=V.viewBox;var m=P.getSize("fontSize",V.baseSize);var B=0,O=0,N=0,u=0;var z=t.textShadow,L=[];if(z){for(var U=z.length;U--;){var F=z[U];var K=m.convertFrom(parseFloat(F.offX));var I=m.convertFrom(parseFloat(F.offY));L[U]=[K,I];if(I<B){B=I}if(K>O){O=K}if(I>N){N=I}if(K<u){u=K}}}var Z=Cufon.CSS.textTransform(w,P).split("");var E=V.spacing(Z,~~m.convertFrom(parseFloat(P.get("letterSpacing"))||0),~~m.convertFrom(parseFloat(P.get("wordSpacing"))||0));if(!E.length){return null}var h=E.total;O+=A.width-E[E.length-1];u+=A.minX;var s,n;if(k){s=C;n=C.firstChild}else{s=document.createElement("cufon");s.className="cufon cufon-canvas";s.setAttribute("alt",w);n=document.createElement("canvas");s.appendChild(n);if(t.printable){var S=document.createElement("cufontext");S.appendChild(document.createTextNode(w));s.appendChild(S)}}var aa=s.style;var H=n.style;var j=m.convert(A.height);var Y=Math.ceil(j);var M=Y/j;var G=M*Cufon.CSS.fontStretch(P.get("fontStretch"));var J=h*G;var Q=Math.ceil(m.convert(J+O-u));var o=Math.ceil(m.convert(A.height-B+N));n.width=Q;n.height=o;H.width=Q+"px";H.height=o+"px";B+=A.minY;H.top=Math.round(m.convert(B-V.ascent))+"px";H.left=Math.round(m.convert(u))+"px";var r=Math.max(Math.ceil(m.convert(J)),0)+"px";if(a){aa.width=r;aa.height=m.convert(V.height)+"px"}else{aa.paddingLeft=r;aa.paddingBottom=(m.convert(V.height)-1)+"px"}var X=n.getContext("2d"),D=j/A.height;X.scale(D,D*M);X.translate(-u,-B);X.save();function T(){var x=V.glyphs,ab,l=-1,g=-1,y;X.scale(G,1);while(y=Z[++l]){var ab=x[Z[l]]||V.missingGlyph;if(!ab){continue}if(ab.d){X.beginPath();if(ab.code){c(ab.code,X)}else{ab.code=d("m"+ab.d,X)}X.fill()}X.translate(E[++g],0)}X.restore()}if(z){for(var U=z.length;U--;){var F=z[U];X.save();X.fillStyle=F.color;X.translate.apply(X,L[U]);T()}}var q=t.textGradient;if(q){var v=q.stops,p=X.createLinearGradient(0,A.minY,0,A.maxY);for(var U=0,R=v.length;U<R;++U){p.addColorStop.apply(p,v[U])}X.fillStyle=p}else{X.fillStyle=P.get("color")}T();return s}})());Cufon.registerEngine("vml",(function(){var e=document.namespaces;if(!e){return}e.add("cvml","urn:schemas-microsoft-com:vml");e=null;var b=document.createElement("cvml:shape");b.style.behavior="url(#default#VML)";if(!b.coordsize){return}b=null;var h=(document.documentMode||0)<8;document.write(('<style type="text/css">cufoncanvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}cufoncanvas{position:absolute;text-align:left;}cufon{display:inline-block;position:relative;vertical-align:'+(h?"middle":"text-bottom")+";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}</style>").replace(/;/g,"!important;"));function c(i,j){return a(i,/(?:em|ex|%)$|^[a-z-]+$/i.test(j)?"1em":j)}function a(l,m){if(m==="0"){return 0}if(/px$/i.test(m)){return parseFloat(m)}var k=l.style.left,j=l.runtimeStyle.left;l.runtimeStyle.left=l.currentStyle.left;l.style.left=m.replace("%","em");var i=l.style.pixelLeft;l.style.left=k;l.runtimeStyle.left=j;return i}function f(l,k,j,n){var i="computed"+n,m=k[i];if(isNaN(m)){m=k.get(n);k[i]=m=(m=="normal")?0:~~j.convertFrom(a(l,m))}return m}var g={};function d(p){var q=p.id;if(!g[q]){var n=p.stops,o=document.createElement("cvml:fill"),i=[];o.type="gradient";o.angle=180;o.focus="0";o.method="sigma";o.color=n[0][1];for(var m=1,l=n.length-1;m<l;++m){i.push(n[m][0]*100+"% "+n[m][1])}o.colors=i.join(",");o.color2=n[l][1];g[q]=o}return g[q]}return function(ac,G,Y,C,K,ad,W){var n=(G===null);if(n){G=K.alt}var I=ac.viewBox;var p=Y.computedFontSize||(Y.computedFontSize=new Cufon.CSS.Size(c(ad,Y.get("fontSize"))+"px",ac.baseSize));var y,q;if(n){y=K;q=K.firstChild}else{y=document.createElement("cufon");y.className="cufon cufon-vml";y.alt=G;q=document.createElement("cufoncanvas");y.appendChild(q);if(C.printable){var Z=document.createElement("cufontext");Z.appendChild(document.createTextNode(G));y.appendChild(Z)}if(!W){y.appendChild(document.createElement("cvml:shape"))}}var ai=y.style;var R=q.style;var l=p.convert(I.height),af=Math.ceil(l);var V=af/l;var P=V*Cufon.CSS.fontStretch(Y.get("fontStretch"));var U=I.minX,T=I.minY;R.height=af;R.top=Math.round(p.convert(T-ac.ascent));R.left=Math.round(p.convert(U));ai.height=p.convert(ac.height)+"px";var F=Y.get("color");var ag=Cufon.CSS.textTransform(G,Y).split("");var L=ac.spacing(ag,f(ad,Y,p,"letterSpacing"),f(ad,Y,p,"wordSpacing"));if(!L.length){return null}var k=L.total;var x=-U+k+(I.width-L[L.length-1]);var ah=p.convert(x*P),X=Math.round(ah);var O=x+","+I.height,m;var J="r"+O+"ns";var u=C.textGradient&&d(C.textGradient);var o=ac.glyphs,S=0;var H=C.textShadow;var ab=-1,aa=0,w;while(w=ag[++ab]){var D=o[ag[ab]]||ac.missingGlyph,v;if(!D){continue}if(n){v=q.childNodes[aa];while(v.firstChild){v.removeChild(v.firstChild)}}else{v=document.createElement("cvml:shape");q.appendChild(v)}v.stroked="f";v.coordsize=O;v.coordorigin=m=(U-S)+","+T;v.path=(D.d?"m"+D.d+"xe":"")+"m"+m+J;v.fillcolor=F;if(u){v.appendChild(u.cloneNode(false))}var ae=v.style;ae.width=X;ae.height=af;if(H){var s=H[0],r=H[1];var B=Cufon.CSS.color(s.color),z;var N=document.createElement("cvml:shadow");N.on="t";N.color=B.color;N.offset=s.offX+","+s.offY;if(r){z=Cufon.CSS.color(r.color);N.type="double";N.color2=z.color;N.offset2=r.offX+","+r.offY}N.opacity=B.opacity||(z&&z.opacity)||1;v.appendChild(N)}S+=L[aa++]}var M=v.nextSibling,t,A;if(C.forceHitArea){if(!M){M=document.createElement("cvml:rect");M.stroked="f";M.className="cufon-vml-cover";t=document.createElement("cvml:fill");t.opacity=0;M.appendChild(t);q.appendChild(M)}A=M.style;A.width=X;A.height=af}else{if(M){q.removeChild(M)}}ai.width=Math.max(Math.ceil(p.convert(k*P)),0);if(h){var Q=Y.computedYAdjust;if(Q===undefined){var E=Y.get("lineHeight");if(E=="normal"){E="1em"}else{if(!isNaN(E)){E+="em"}}Y.computedYAdjust=Q=0.5*(a(ad,E)-parseFloat(ai.height))}if(Q){ai.marginTop=Math.ceil(Q)+"px";ai.marginBottom=Q+"px"}}return y}})());

Compartilhar este post


Link para o post
Compartilhar em outros sites

Quando você gerou o arquivo no site, qual glyphs você escolheu???

 

Ou escolhe All (Todos)

Ou Basic Latin + Latin-1 Supplement.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Quando você gerou o arquivo no site, qual glyphs você escolheu???

 

Ou escolhe All (Todos)

Ou Basic Latin + Latin-1 Supplement.

 

Peguei um tema ja pronto.

Nao sei te dizer.

Mas se tiver como ver isso...

Compartilhar este post


Link para o post
Compartilhar em outros sites

Vai ter que gerar a fonte novamente. Remova o Header(); da linha do PHP, e mantenha as aspas como "" ou use entities numéricas x;

Compartilhar este post


Link para o post
Compartilhar em outros sites

Vai ter que gerar a fonte novamente. Remova o Header(); da linha do PHP, e mantenha as aspas como "" ou use entities numéricas x;

 

Sim, e o restante do texto?

Tem coisas que estão fora do PHP que mesmo antes de colocar a linha em PHP já nao aparecia com acento.

Compartilhar este post


Link para o post
Compartilhar em outros sites

A parte do acento é quanto a fonte do cufon que foi gerada sem os tais... provavelmente se o lay-out pronto que você pegou veio em inglês, não haverá NENHUM acento, uma vez que eles não os usam por lá e removê-los da paleta de caracteres gera um arquivo JS menor :P

 

A parte do Header PHP é pra evitar erros. Você não PODE enviar um HEADER(); depois que a página já recebeu caracteres escritos. Qualquer dúvida, abra um tópico na área de PHP.

 

A parte das aspas é porque, quando fui testar seu código, o ZendStudio NÃO PERMITIU que eu salvasse o documento enquanto as benditas estivessem lá. Ele alega incompatibilidade com o charset iso-8859-1. Portanto já recomendo de antemão que os altere, para evitar qualquer problema posterior, com acentuações em AJAX por exemplo.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Então, esse cufon estou achando que ele transforma o texto em imagem. No dreamweaver botei pra ver o live code e ele coloca tags como de imagens. Existe uma forma de colocar os acentos mesmo depois de pronto?

 

A linha em PHP já removi.

As aspas tb ja se foram.

:D

 

Acho que o site que gerou foi esse:

 

http://cufon.shoqolate.com/generate/

Compartilhar este post


Link para o post
Compartilhar em outros sites

Como o srnetcave e eu dissemos, você vai ter que gerar o JS da fonte novamente.

Você leu a página do cufon???

 

Sim, ele transforma em imagem, mas utilizando-se da html5 <canvas> em browsers compatíveis ou de estrutura SVG em browsers incompatíveis.

 

Quer fazer um teste? Tente selecionar o texto no IE, Firefox ou Opera. No Safari/Chrome é possível selecionar parte dele, mas você perceberá que não fica plano como um texto, ele seleciona quadrados.

 

O cufon serve para exibir fontes de uma página independente da mesma estar ou não instalada no computador do visitante. Como isso? Convertendo em imagens.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Então como posso saber qual fonte eles usaram para eu poder usar a mesma?

E qual glyphs devo usar?

Basic Latin, Latin-1 Supplement, Latin Extended-A, ou outro??

Compartilhar este post


Link para o post
Compartilhar em outros sites

o Latin básico + latin-1

 

Latin-1 Supplement

Latin glyphs within the Unicode range 0x00A0 to 0x00FF. Includes punctuation, currency symbols, numerals and common accented characters. (96 glyphs)

a fonte eu não faço idéia MESMO

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.