Digital Art Zone

 
     
OT: Help with website calendar
Posted: 25 May 2012 01:24 PM   [ Ignore ]
Addict
Avatar
RankRankRankRank
Total Posts:  4467
Joined  2004-08-11

Hiya,

I finished my update for my website:
http://www.ramwolffsworld.com/RAMWolffsWorld/

When I first got this calendar, years ago, it used to have the day of the week highlighted.  That little string of code seems to have gone away and wondering if there are any HTML folks here that can look over the HTML (the calendar is embedded in the web sites Home.HTML page) and see if I can’t get back my highlighted day.  It was a nice option.  I’d like the color to to be #9BCF53 if possible. 

Thanks for the help! grin

 Signature 

    —- Wolff On The Prowl—-

Pan Project

Profile
 
 
Posted: 25 May 2012 03:37 PM   [ Ignore ]   [ # 1 ]
Addict
Avatar
RankRankRankRank
Total Posts:  4708
Joined  2005-08-03

The code is actually there, it just doesn’t work in Firefox. It works fine in IE, though.

{
     
if ((now.getDate() == c)&&(show_date.getMonth() == now.getMonth())&&(show_date.getYear() == now.getYear())) {document.getElementById("d"+i+"r"+j).style.backgroundColor "65e95e";document.getElementById("d"+i+"r"+j).style.color "000000";};
     if (
c>0{document.getElementById("d"+i+"r"+j)[removed] =  c};
     
i++;
     if (
i==7){i=0;j++;}
    } 


That’s the area specifically where “65e95e” is the highlight color. You can find that roughly around lines ~218-223

I’m also not sure why that section near the end says [removed] when code quoted in the forums as the code is actually present in the html/javascript. o_O

/edit
Read up on some code differences between the two browsers. Add the # sign infront of both 65e95e and 000000 (ex: “65e95e” becomes “#65e95e”), and the code works in both IE and FF. Change the 65e95e to your color code also.

 Signature 

Wearing duck crap doesn’t make you a duck - Floki
@Deviantart | @ShareCG
Tutorial: V4 Transmap Brows on Genesis via DS only.
——————————-
Websleuths - Help bring the missing home and give names to those who don’t have them.

Profile
 
 
Posted: 25 May 2012 07:04 PM   [ Ignore ]   [ # 2 ]
Addict
Avatar
RankRankRankRank
Total Posts:  4467
Joined  2004-08-11

Hi, Just home from the gym.  OK.. I’ll try that!  Thanks so much!  grin

 Signature 

    —- Wolff On The Prowl—-

Pan Project

Profile
 
 
Posted: 25 May 2012 07:47 PM   [ Ignore ]   [ # 3 ]
Addict
Avatar
RankRankRankRank
Total Posts:  4467
Joined  2004-08-11

All fixed and works as expected.  Even changed the violet frame color to a less saturated one!  MUCH better!  Thanks again!  grin

 Signature 

    —- Wolff On The Prowl—-

Pan Project

Profile
 
 
Posted: 25 May 2012 09:23 PM   [ Ignore ]   [ # 4 ]
Addict
Avatar
RankRankRankRank
Total Posts:  4708
Joined  2005-08-03

No problem. Glad it worked. :D

 Signature 

Wearing duck crap doesn’t make you a duck - Floki
@Deviantart | @ShareCG
Tutorial: V4 Transmap Brows on Genesis via DS only.
——————————-
Websleuths - Help bring the missing home and give names to those who don’t have them.

Profile