Click here to Skip to main content
15,903,388 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Is this do-able? Sync web data with thumb drive device Pin
Hypermommy22-Apr-09 6:13
Hypermommy22-Apr-09 6:13 
GeneralRe: Is this do-able? Sync web data with thumb drive device Pin
Marc Firth22-Apr-09 21:52
Marc Firth22-Apr-09 21:52 
AnswerRe: Is this do-able? Sync web data with thumb drive device Pin
led mike22-Apr-09 6:49
led mike22-Apr-09 6:49 
GeneralRe: Is this do-able? Sync web data with thumb drive device Pin
Hypermommy22-Apr-09 11:25
Hypermommy22-Apr-09 11:25 
GeneralRe: Is this do-able? Sync web data with thumb drive device Pin
SeMartens22-Apr-09 21:17
SeMartens22-Apr-09 21:17 
QuestionJavascript if/else and image display? Pin
djhankypark21-Apr-09 6:36
djhankypark21-Apr-09 6:36 
AnswerRe: Javascript if/else and image display? Pin
Marc Firth21-Apr-09 22:41
Marc Firth21-Apr-09 22:41 
GeneralRe: Javascript if/else and image display? Pin
djhankypark22-Apr-09 10:36
djhankypark22-Apr-09 10:36 
Hi Neonlight, and thank you for answering I appreciate your time.
Basically when my page opens which includes a recordset, one of the fields in the recordset is "genre" i.e. artist, compilation, classical, ost and so on...

The code I have on my page at the moment for the image looks like this...

<a href="http://pictures.specialcounters.co.uk/covers/<%=(Recordset1.Fields.Item(" genre=").Value)%>/<%=(Recordset1.Fields.Item(" artist=").Value)%>/<%=(Recordset1.Fields.Item(" album=").Value)%>/back.jpg"><img src="http://pictures.specialcounters.co.uk/covers/<%=(Recordset1.Fields.Item(" genre=").Value)%>/<%=(Recordset1.Fields.Item(" artist=").Value)%>/<%=(Recordset1.Fields.Item(" album=").Value)%>/back.jpg" alt="" name="smallcover" width="168" height="168" id="smallcover" /></a>


what i need is information/help on how to set out in javascript an if/else statement so that when the page opens it asks, if "genre" = "artist" then the img src = as above ... else if "genre" = "compilation" then img src = as below

<a href="http://pictures.specialcounters.co.uk/<%=(Recordset1.Fields.Item(" genre=").Value)%>/<%=(Recordset1.Fields.Item(" album=").Value)%>/back.jpg"><img src="http://pictures.specialcounters.co.uk/<%=(Recordset1.Fields.Item(" genre=").Value)%>/<%=(Recordset1.Fields.Item(" album=").Value)%>/back.jpg" alt="" name="smallcover" width="168" height="168" id="smallcover" /></a>


else if and so on..

If you could help with information or even point into the right direction it would be much appreciated.

Thank you again for your response.

Regards
Ray
GeneralRe: Javascript if/else and image display? Pin
Marc Firth22-Apr-09 22:14
Marc Firth22-Apr-09 22:14 
GeneralRe: Javascript if/else and image display? Pin
djhankypark25-Apr-09 0:26
djhankypark25-Apr-09 0:26 
GeneralRe: Javascript if/else and image display? Pin
djhankypark22-Apr-09 10:38
djhankypark22-Apr-09 10:38 
QuestionUse Javscript to check user online Pin
Member 323010721-Apr-09 0:01
Member 323010721-Apr-09 0:01 
AnswerRe: Use Javscript to check user online Pin
Marc Firth21-Apr-09 0:35
Marc Firth21-Apr-09 0:35 
GeneralRe: Use Javscript to check user online Pin
Yusuf21-Apr-09 7:57
Yusuf21-Apr-09 7:57 
GeneralRe: Use Javscript to check user online Pin
Marc Firth21-Apr-09 22:27
Marc Firth21-Apr-09 22:27 
QuestionNeed to get "Direction Map Codes" Like ... Pin
qayyom20-Apr-09 23:54
qayyom20-Apr-09 23:54 
AnswerRe: Need to get "Direction Map Codes" Like ... Pin
Marc Firth21-Apr-09 0:37
Marc Firth21-Apr-09 0:37 
QuestionRe: Need to get "Direction Map Codes" Like ... Pin
qayyom21-Apr-09 0:51
qayyom21-Apr-09 0:51 
AnswerRe: Need to get "Direction Map Codes" Like ... Pin
Marc Firth21-Apr-09 0:59
Marc Firth21-Apr-09 0:59 
GeneralRe: Need to get "Direction Map Codes" Like ... Pin
qayyom21-Apr-09 1:07
qayyom21-Apr-09 1:07 
QuestionPDF mailto link not working Pin
Jay HoffmanTE20-Apr-09 7:41
Jay HoffmanTE20-Apr-09 7:41 
AnswerRe: PDF mailto link not working Pin
Marc Firth21-Apr-09 1:05
Marc Firth21-Apr-09 1:05 
GeneralRe: PDF mailto link not working Pin
Jay HoffmanTE21-Apr-09 2:09
Jay HoffmanTE21-Apr-09 2:09 
GeneralRe: PDF mailto link not working Pin
Marc Firth21-Apr-09 2:12
Marc Firth21-Apr-09 2:12 
QuestionHelp about asp & activex Pin
maxMESA20-Apr-09 4:32
maxMESA20-Apr-09 4:32 

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.