Click here to Skip to main content
15,921,169 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: How to introduce a search page in our site to google ? Pin
cena1112-Sep-10 23:36
cena1112-Sep-10 23:36 
QuestionWhy doesn't this javascript code work in firefox? Pin
bfis10813728-Aug-10 12:57
bfis10813728-Aug-10 12:57 
AnswerRe: Why doesn't this javascript code work in firefox? [modified] Pin
NeverHeardOfMe28-Aug-10 13:33
NeverHeardOfMe28-Aug-10 13:33 
AnswerRe: Why doesn't this javascript code work in firefox? Pin
DaveAuld3-Sep-10 0:49
professionalDaveAuld3-Sep-10 0:49 
QuestionTwitter.com is not opening properly in iframe(HTML).... Pin
Punit.Khaire27-Aug-10 5:57
Punit.Khaire27-Aug-10 5:57 
AnswerRe: Twitter.com is not opening properly in iframe(HTML).... Pin
JHizzle27-Aug-10 6:07
JHizzle27-Aug-10 6:07 
QuestionChanging HTML value in other part of WPF program Pin
Sonar8724-Aug-10 14:12
Sonar8724-Aug-10 14:12 
QuestionHow would I get it to... replaceWith()? [modified] Pin
thebiostyle21-Aug-10 18:35
thebiostyle21-Aug-10 18:35 
Okay, well, I'm trying to code something to help out another website, and I can't seem to figure it out... I am printing out a list with PHP and MySQL, and I want it to print part of the list in colors... this is what I am using...

------------------------------------------------
<pre><script type="text/javascript>
$("body:contains('Fire Squad')").replaceWith(("<b>Fire</b>")
</script></pre>
------------------------------------------------

and this...

------------------------------------------------
<pre><table><tr><td><b><i>Name</b></i></td><td><b><i>Squad</b></i></td><td><b><i>Friend Code</b></i></td ></tr>
<?
$list_members = mysql_query("SELECT * FROM `brawl` ORDER BY squad");
$list = mysql_fetch_array( $list_members );
while($list = mysql_fetch_array( $list_members ))
{
Print '<tr><td>';
Print "".$list['username']."</td><td>".$list['squad']."</td><td>".$list['FC']."</td></tr>";
}
?>
</div>
</table> </pre>
------------------------------------------------


EDIT: I tried something else, and now it just prints out a blank line where the squad should be....

------------------------------------------------
<pre><select id="squads" name="squads">
<option id="air">Air Squad</option>
<option id="earth">Earth Squad</option>
<option id="fire">Fire Squad</option>
<option id="water">Water Squad</option>
<option id="neutral" selected="selected">Neutral</option>
<option id="admin">Admin</option>
</select>
<script type="text/javascript">
if document.getElementById("fire").selected=true
{
document.write("<input type="hidden" id="squad" value="<span style='color:red'><b>Fire Squad</b></span>"/>");
}
else if document.getElementById("air").selected=true
{
document.write("<input type="hidden" id="squad" value="<span style='color:goldenrod'><b>Air Squad</b></span>"/>");
}
else if document.getElementById("earth").selected=true
{
document.write("<input type="hidden" id="squad" value="<span style='color:#090'><b>Earth Squad</b></span>"/>");
}
else if document.getElementById("water").selected=true
{
document.write("<input type="hidden" id="squad" value="<span style='color:blue'><b>Water Squad</b></span>"/>");
}
else if document.getElementById("neutral").selected=true
{
document.write("<input type="hidden" id="squad" value="<span style='color:black'><b>Neutral</b></span>"/>");
}
else
{
document.write("<input type="hidden" id="squad" value="<span style='color:black'><b>Admin</b></span>"/>");
}
</script></pre>
-----------------------------------------------

Please help, I'd like to have this part done by tomorrow night.... Thanks!
Questionmailto - How to insert a URL hyperlink in the Body with DisplayText Pin
SarahMcM19-Aug-10 19:30
SarahMcM19-Aug-10 19:30 
AnswerRe: mailto - How to insert a URL hyperlink in the Body with DisplayText Pin
Covean19-Aug-10 20:45
Covean19-Aug-10 20:45 
QuestionExcel VSTO exposed via web Pin
El Code Monkey19-Aug-10 10:49
El Code Monkey19-Aug-10 10:49 
QuestionPassing data from a windows service to WCF Pin
gerom7718-Aug-10 21:29
gerom7718-Aug-10 21:29 
Questionie 6/7 div seems to be clearing Pin
nickmaroulis11-Aug-10 18:39
nickmaroulis11-Aug-10 18:39 
AnswerRe: ie 6/7 div seems to be clearing [modified] Pin
Prosanta Kundu online15-Aug-10 21:36
Prosanta Kundu online15-Aug-10 21:36 
GeneralRe: ie 6/7 div seems to be clearing Pin
jahangir_ahmad12-Sep-10 3:41
jahangir_ahmad12-Sep-10 3:41 
AnswerRe: ie 6/7 div seems to be clearing Pin
Gerben Jongerius15-Aug-10 21:56
Gerben Jongerius15-Aug-10 21:56 
GeneralRe: ie 6/7 div seems to be clearing Pin
nickmaroulis16-Aug-10 13:11
nickmaroulis16-Aug-10 13:11 
QuestionHelp authoring tools Pin
goodideadave11-Aug-10 12:38
goodideadave11-Aug-10 12:38 
QuestionXML With javascript Pin
geeeeeeeetha10-Aug-10 1:15
geeeeeeeetha10-Aug-10 1:15 
QuestionPurpose of using branding.css? Pin
swornavidhya_m9-Aug-10 19:42
swornavidhya_m9-Aug-10 19:42 
AnswerRe: Purpose of using branding.css? Pin
Prosanta Kundu online10-Aug-10 22:39
Prosanta Kundu online10-Aug-10 22:39 
QuestionHTTP <--> HTTPS: Getting security warning in IE Pin
dafaust9-Aug-10 8:05
dafaust9-Aug-10 8:05 
AnswerRe: HTTP HTTPS: Getting security warning in IE Pin
Graham Breach9-Aug-10 8:31
Graham Breach9-Aug-10 8:31 
GeneralRe: HTTP HTTPS: Getting security warning in IE Pin
dafaust9-Aug-10 8:49
dafaust9-Aug-10 8:49 
Questionhow to create web org chart application dynamically through mysql database using C#, ASP.net Pin
sr1598-Aug-10 21:34
sr1598-Aug-10 21:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.