English 中文(简体)
在点击时将字体改为黑体——超声频带
原标题:changing the font to bold when clicked - HTML PHP

我在左边的菜单上就有一个名单,如FAQ的话题,在右边点击这个名单时,我从MySQL db显示浮标。

当我点击一个清单项目时,我想要改变这些物品的字面设计,以便用户能够看到其选择的直观指标,而且用户知道他所讨论的具体财务问题。 这是可能的吗?

你们可以在法典中正确做到:

<div class="boxHelpItem">
<?PHP

//Query
$result = mysql_query("SELECT * FROM faq_topics ORDER BY number ASC");
while ($row = mysql_fetch_array($result))
{
    $result1 = mysql_query("SELECT * FROM faq_questions WHERE topicid= $row[id]  ORDER BY number ASC");

    echo  <div style="height:15px; padding-top:5px; font-size:13px;">  . $row[ title ] .  </div> ;
    echo  <ul style=" padding-left:10px;"> ;
    while ($row1 = mysql_fetch_array($result1))
    {
        echo  <li style="color:#404040; font-size:12px;" onclick="faqGet(   . $row1[ id ] .   );" onmouseover="this.style.textDecoration =  underline ;" onmouseout="this.style.textDecoration =   ;">  . $row1[ title ] .  </li> ;
    }
    echo  </ul> ;
}

?>
</div> 
问题回答

你可以利用浮标活动......

onclick="faqGet(   . $row1[ id ] .   ); this.style.fontWeight= bold ;"

虽然你还需要揭开其他项目,但你可能希望把这个要素的逻辑转化为一种功能。 然后,你可以搁置清单项目,取消ty,然后确定选定的项目。

此外,你不妨读一下从你的超文本中删除 your的比照,这样做非常容易,并将使你的超文本更加容易维持。

我的最后一点是,如果你使每个财务调查科有一个适当的联系,那么你可以为贾瓦文的失败提供背后的行为,并且也利用特别安全局来描述目前的项目。

a:focus { font-weight: bold; }




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签