- آخر التوقعات للأجواء و درجات الحرارة على منطقة القصيم يوم الخميس و الجمعة و السبت بمشيئة الله تعالى
- هذا و الله أعلم
<SCRIPT language=javascript type=text/javascript> $(document).ready(function() { var id = document.getElementById("NodeID").value; var cookieName = "FavoritterKake"; var values = ""; var tmpValues = null; var delim = "|"; var date = null; var cookie = null; var cookies = null; var maxNr = 12; if (document.cookie && document.cookie != '') { cookies = document.cookie.split(';'); values = findCookieWithValues(cookies); if (values && values.indexOf(id) > -1) { setLinkClass("favourite fav_chosen"); setLinkText($("#Tekstvalgt").attr("value")); } else { setLinkClass("favourite"); setLinkText($("#Tekstikkevalgt").attr("value")); } } $("#FavorittLenke").click(function() { if ($("#FavorittLenke").attr("class") == "favourite") { var found = false; var theDate = new Date(); date = new Date(theDate.getTime() + 31536000000); found = findCookie(); if (!found) { replaceLastElement(); writeCookie(cookieName, values, date.toGMTString()); setLinkClass("favourite fav_chosen"); } } else { removeCookieValue(); writeCookie(cookieName, values, date.toGMTString()); setLinkClass("favourite"); } }); function findCookieWithValues(c) { var cook = c; for (var i = 0; i < cook.length; i++) { var temp = cook[i].substring(0, cookieName.length).replace(" ", ""); if (temp != cookieName && (cookieName.indexOf(temp) > -1)) { temp = cook[i].substring(0, cookieName.length + 1).replace(" ", ""); } if (temp == cookieName) { cookie = $.trim(cook[i]); return cookie.split("=")[1]; } } } function writeCookie(name, vals, expires) { document.cookie = name + "=" + vals + "; expires=" + expires + "; path=/"; } function findCookie() { if (values && values.length > 0) { tmpValues = values.split(delim); for (var i = 0; i < tmpValues.length; i++) { if (tmpValues[i] == id) { return true; } } } } function replaceLastElement() { if (values && values.length > 0) { if (tmpValues.length == maxNr) { var oldValue = tmpValues[maxNr - 1]; tmpValues[maxNr - 1] = id; values = values.replace(oldValue, tmpValues[maxNr - 1]); } else values = values + "|" + id; } else { values = id; } } function removeCookieValue() { if (values.indexOf(id + delim) > -1) values = values.replace(id + delim, ""); else if (values.indexOf(id) > -1) values = values.replace(id, ""); if (values.substr(values.length - 1, 1) == "|") { values = values.substr(0, values.length - 1); } if (!date) { if (values.length == 0) { date = new Date(); date.setTime(date.getTime() - 100); } else { var theDate = new Date(); date = new Date(theDate.getTime() + 31536000000); } } } function setLinkClass(theClass) { $("#FavorittLenke").attr("class", theClass); } function setLinkText(theText) { $("#FavorittLenke").text(theText); } });</SCRIPT><!-- Meny for punktet -->
<!-- /Meny for punktet --><!-- Meteorologens vurdering --><!-- /Meteorologens vurdering --><!-- Meteogrammet -->
<!-- /Meny for punktet --><!-- Meteorologens vurdering --><!-- /Meteorologens vurdering --><!-- Meteogrammet -->