Ir para conteúdo
Fórum Script Brasil
  • 0

Formatar Scroll Do Frame


Gutto

Pergunta

Oww,

estou precisando mudar o visual da barra de rolagem de um frame, mas... aonde tá o erro?

<frame src="view.php" name="mainFrame" scrolling="yes" noresize style="background-image: url(images/images.jpg);

SCROLLBAR-FACE-COLOR: #FCD9BB; SCROLLBAR-HIGHLIGHT-COLOR: #FCD9BB; SCROLLBAR-SHADOW-COLOR:

#FCD9BB; SCROLLBAR-ARROW-COLOR: #FA7F17; SCROLLBAR-BASE-COLOR: #FCD9BB; SCROLLBAR-TRACK-COLOR:

#FCD9BB; SCROLLBAR-DARKSHADOW-COLOR: #FCD9BB; scrollbar-3d-light-color: #FCD9BB;">

A página view não está vindo com os atributos que especifiquei no style. Tentei colocar esses atributos dentro da própria view.php, mas também n deu rock. Aonde tá o erro?

Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts Recomendados

  • 0

tente colocando no <body>

<body style="background-image: url(images/images.jpg); 

SCROLLBAR-FACE-COLOR: #FCD9BB; SCROLLBAR-HIGHLIGHT-COLOR: #FCD9BB; SCROLLBAR-SHADOW-COLOR: 

#FCD9BB; SCROLLBAR-ARROW-COLOR: #FA7F17; SCROLLBAR-BASE-COLOR: #FCD9BB; SCROLLBAR-TRACK-COLOR: 

#FCD9BB; SCROLLBAR-DARKSHADOW-COLOR: #FCD9BB; scrollbar-3d-light-color: #FCD9BB;">

Link para o comentário
Compartilhar em outros sites

  • 0

Deu certo rapaz, vlw's.

<?php

require_once('libs/itx.php');

require_once('libs/mysql.driver.php');

require_once('constant/constant.php');

require_once('libs/functions.php');

require_once('php_tail.php');

header("Date: ".gmdate("D d M Y H:i:s")." GMT");

header("Expires: Mon 26 Jul 1997 05:00:00 GMT");

header("Last-Modified: ".gmdate("D d M Y H:i:s")." GMT");

header("Pragma: no-cache");

header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate");

header("Content-Type: text/html");

session_start();

session_register('username', $_SESSION['username']);

$GLOBALS['DB'] = new DB;

?>

<body style="background-color: #ff0f0f;

SCROLLBAR-FACE-COLOR: #FCD9BB; SCROLLBAR-HIGHLIGHT-COLOR: #FCD9BB; SCROLLBAR-SHADOW-COLOR:

#FCD9BB; SCROLLBAR-ARROW-COLOR: #FA7F17; SCROLLBAR-BASE-COLOR: #FCD9BB; SCROLLBAR-TRACK-COLOR:

#FCD9BB; SCROLLBAR-DARKSHADOW-COLOR: #FCD9BB; scrollbar-3d-light-color: #FCD9BB;">

<?

switch ($view) {

default: viewUserMessenger(); break;

}

function viewUserMessenger()

{

global $DB;

$date = time() - ADD_TIME;

if ($sql = $DB->query("SELECT nick_name, messenger, running_time FROM chatroom WHERE expire_date > ${date}")) {

if ($DB->num_rows($sql) == 0) {

$tpl = new ITX;

$tpl->load_tpl_file(array('header' => 'header.tpl',

'body' => 'view.tpl',

'footer' => 'footer.tpl'));

$tpl->assign_vars('display_buffer', '<b>Bem vindo ' . $_SESSION['username] . '</b>');

$tpl->display();

}

else {

$buffer = "<table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"2\">\n";

while (list ($user, $messenger, $time) = $DB->fetch_row($sql)) {

$messenger = stripslashes($messenger);

//$messenger = nl2br(str_replace(' ', '&nbsp;', $messenger));

if ($user === $_SESSION['username']) {

$username = '<span style="font-size:11px;color:#007700">'.$user.' diz:</span>';

//$messenger = '<span style="color:#007700">'.$messenger.'</span>';

}

else {

$username = '<span style="font-size:11px;color:#000000">'.$user.' diz:</span>';

//$messenger = '<span style="color:#000000">'.$messenger.'</span>';

}

$buffer .= "<tr><td align=\"left\">(".date('H:i:s', $time).")"." "."<b>".$username."</b></td></tr>\n"; //date('d/m/Y H:i:s', $time)

$buffer .= "<tr><td align=\"left\">".$messenger."</td></tr>\n";

}

$buffer .= "</table>";

$tpl = new ITX;

$tpl->load_tpl_file(array('header' => 'header.tpl',

'body' => 'view.tpl',

'footer' => 'footer.tpl'));

$tpl->assign_vars('display_buffer', $buffer);

$tpl->display();

}

}

else {

isError(mysql_error(), 1);

return;

}

}

?>

</body>

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.


  • Estatísticas dos Fóruns

    • Tópicos
      152,3k
    • Posts
      652,3k
×
×
  • Criar Novo...