Alts for viewing without images

master
vitalif 2010-08-31 21:41:32 +00:00
parent 0e735c4d4a
commit 691ff3e09a
4 changed files with 15 additions and 25 deletions

View File

@ -105,6 +105,9 @@ function fof_render_item($item)
width="16"
src="<?php echo $star_image ?>"
id="fav<?php echo $item_id ?>"
alt="<?= $star ? "" : "" ?>"
class="star"
style="<?= $star ? " color: #c00000;" : "" ?>"
onclick="return toggle_favorite('<?php echo $item_id ?>')"
/>
<script>

31
fof.css
View File

@ -272,30 +272,11 @@ body
display: inline;
}
.hidden h2
{
font-size: 80%;
}
.hidden .tags
{
display: none;
}
.hidden .meta
{
display: none;
}
.hidden .dash
{
display: inline;
}
.shown .dash
{
display: none;
}
.hidden h2 { font-size: 80%; }
.hidden .tags { display: none; }
.hidden .meta { display: none; }
.hidden .dash { display: inline; }
.shown .dash { display: none; }
#welcome
{
@ -308,6 +289,8 @@ padding: 5px 7px;
#addupd { text-align: center; margin-top: 8px; }
img.star { font-size: 13px; border-style: none; }
#item-display-controls
{
font: normal 10px Verdana;

4
fof.js
View File

@ -773,6 +773,8 @@ function toggle_favorite(id)
var complete = function()
{
image.src='image/star-off.gif';
image.alt='✧';
image.style.color = '';
image.star = false;
starred--;
if(starred)
@ -791,6 +793,8 @@ function toggle_favorite(id)
var complete = function()
{
image.src='image/star-on.gif';
image.alt='✦';
image.style.color = '#c00000';
image.star = true;
starred++;
if(starred)

View File

@ -17,7 +17,7 @@ include_once("fof-main.php");
fof_set_content_type();
?>
<img id="throbber" src="image/throbber.gif" align="left" style="position: fixed; left: 0; top: 0; display: none;" />
<img id="throbber" src="image/throbber.gif" align="left" alt="" style="position: fixed; left: 0; top: 0; display: none;" />
<div id="welcome">Welcome <b><?php echo $fof_user_name ?></b>! <a href="prefs.php">prefs</a> | <a href="logout.php">log out</a> | <a href="http://feedonfeeds.com/">about</a></div>
<div id="addupd"><a href="add.php"><b>Add Feeds</b></a> / <a href="update.php"><b>Update Feeds</b></a></div>