- window.onload = function() { document.onselectstart = function() {return false;} // ie document.onmousedown = function() {return false;} // mozilla } var _gaq = _gaq || []; _gaq.push([‘_setAccount’, ‘UA-36520651-1’]); _gaq.push([‘_setDomainName’, ‘blogspot.com’]); _gaq.push([‘_setAllowLinker’, true]); _gaq.push([‘_trackPageview’]); (function() { var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true; ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’; var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s); })(); function pageScroll() { window.scrollBy(0,50); // horizontal and vertical scroll increments scrolldelay = setTimeout(‘pageScroll()’,100); // scrolls every 100 milliseconds } Scroll Page | Stop Scrolling window.onload = function() { var element = document.getElementById(‘content’); element.onselectstart = function () { return false; } // ie element.onmousedown = function () { return false; } // mozilla }/*——-MBT Floating Counters————*/ #floatdiv { position:absolute; width:94px; height:229px; top:0; right:0; z-index:100 } #mbtsidebar { border:1px solid #ddd; padding-left:5px; position:relative; height:220px; width:55px; margin:0 0 0 5px; }
// JavaScript Document <!– /* Script by: http://www.jtricks.com * Version: 20071017 * Latest version: * http://www.jtricks.com/javascript/navigation/floating.html */ var floatingMenuId = 'floatdiv'; var floatingMenu = { targetX: 0, targetY: 300, hasInner: typeof(window.innerWidth) == 'number', hasElement: typeof(document.documentElement) == 'object' && typeof(document.documentElement.clientWidth) == 'number', menu: document.getElementById ? document.getElementById(floatingMenuId) : document.all ? document.all[floatingMenuId] : document.layers[floatingMenuId] }; floatingMenu.move = function () { floatingMenu.menu.style.left = floatingMenu.nextX + 'px'; floatingMenu.menu.style.top = floatingMenu.nextY + 'px'; } floatingMenu.computeShifts = function () { var de = document.documentElement; floatingMenu.shiftX = floatingMenu.hasInner ? pageXOffset : floatingMenu.hasElement ? de.scrollLeft : document.body.scrollLeft; if (floatingMenu.targetX < 0) { floatingMenu.shiftX += floatingMenu.hasElement ? de.clientWidth : document.body.clientWidth; } floatingMenu.shiftY = floatingMenu.hasInner ? pageYOffset : floatingMenu.hasElement ? de.scrollTop : document.body.scrollTop; if (floatingMenu.targetY window.innerHeight ? window.innerHeight : de.clientHeight } else { floatingMenu.shiftY += floatingMenu.hasElement ? de.clientHeight : document.body.clientHeight; } } } floatingMenu.calculateCornerX = function() { if (floatingMenu.targetX != ‘center’) return floatingMenu.shiftX + floatingMenu.targetX; var width = parseInt(floatingMenu.menu.offsetWidth); var cornerX = floatingMenu.hasElement ? (floatingMenu.hasInner ? pageXOffset : document.documentElement.scrollLeft) + (document.documentElement.clientWidth – width)/2 : document.body.scrollLeft + (document.body.clientWidth – width)/2; return cornerX; }; floatingMenu.calculateCornerY = function() { if (floatingMenu.targetY != ‘center’) return floatingMenu.shiftY + floatingMenu.targetY; var height = parseInt(floatingMenu.menu.offsetHeight); // Handle Opera 8 problems var clientHeight = floatingMenu.hasElement && floatingMenu.hasInner && document.documentElement.clientHeight > window.innerHeight ? window.innerHeight : document.documentElement.clientHeight var cornerY = floatingMenu.hasElement ? (floatingMenu.hasInner ? pageYOffset : document.documentElement.scrollTop) + (clientHeight – height)/2 : document.body.scrollTop + (document.body.clientHeight – height)/2; return cornerY; }; floatingMenu.doFloat = function() { // Check if reference to menu was lost due // to ajax manipuations if (!floatingMenu.menu) { menu = document.getElementById ? document.getElementById(floatingMenuId) : document.all ? document.all[floatingMenuId] : document.layers[floatingMenuId]; initSecondary(); } var stepX, stepY; floatingMenu.computeShifts(); var cornerX = floatingMenu.calculateCornerX(); var stepX = (cornerX – floatingMenu.nextX) * .07; if (Math.abs(stepX) < .5) { stepX = cornerX – floatingMenu.nextX; } var cornerY = floatingMenu.calculateCornerY(); var stepY = (cornerY – floatingMenu.nextY) * .07; if (Math.abs(stepY) 0 || Math.abs(stepY) > 0) { floatingMenu.nextX += stepX; floatingMenu.nextY += stepY; floatingMenu.move(); } setTimeout(‘floatingMenu.doFloat()’, 20); }; // addEvent designed by Aaron Moore floatingMenu.addEvent = function(element, listener, handler) { if(typeof element[listener] != ‘function’ || typeof element[listener + ‘_num’] == ‘undefined’) { element[listener + ‘_num’] = 0; if (typeof element[listener] == ‘function’) { element[listener + 0] = element[listener]; element[listener + ‘_num’]++; } element[listener] = function(e) { var r = true; e = (e) ? e : window.event; for(var i = element[listener + ‘_num’] -1; i >= 0; i–) { if(element[listener + i](e) == false) r = false; } return r; } } //if handler is not already stored, assign it for(var i = 0; i /*—————————————-* * 参数说明: * obj: 对象, 要进行高亮显示的html标签节点. * hlWords: 字符串, 要进行高亮的关键词词, 使用 竖杠(|)或空格 分隔多个词 . * cssClass: 字符串, 定义关键词突出显示风格的css伪类. * 参考资料: javascript HTML DOM 高亮显示页面特定字词 \*—————————————-*/ function MarkHighLight(obj, hlWords, cssClass) { hlWords = AnalyzeHighLightWords(hlWords); if (obj == null || hlWords.length == 0) return; if (cssClass == null) cssClass = “highlight”; MarkHighLightCore(obj, hlWords); //————执行高亮标记的核心方法—————————- function MarkHighLightCore(obj, keyWords) { var re = new RegExp(keyWords, “i”); for (var i = 0; i < obj.childNodes.length; i++) { var childObj = obj.childNodes[i]; if (childObj.nodeType == 3) { if (childObj.data.search(re) == -1) continue; var reResult = new RegExp("(" + keyWords + ")", "gi"); var objResult = document.createElement("span"); objResult.innerHTML = childObj.data.replace(reResult, "$1“); if (childObj.data == objResult.childNodes[0].innerHTML) continue; obj.replaceChild(objResult, childObj); } else if (childObj.nodeType == 1) { MarkHighLightCore(childObj, keyWords); } } } //———-分析关键词———————- function AnalyzeHighLightWords(hlWords) { if (hlWords == null) return “”; hlWords = hlWords.replace(/\s+/g, “|”).replace(/\|+/g, “|”); hlWords = hlWords.replace(/(^\|*)|(\|*$)/g, “”); if (hlWords.length == 0) return “”; var wordsArr = hlWords.split(“|”); if (wordsArr.length > 1) { var resultArr = BubbleSort(wordsArr); var result = “”; for (var i = 0; i < resultArr.length; i++) { result = result + "|" + resultArr[i]; } return result.replace(/(^\|*)|(\|*$)/g, ""); } else { return hlWords; } } //—–利用冒泡排序法把长的关键词放前面—– function BubbleSort(arr) { var temp, exchange; for (var i = 0; i = i; j–) { if ((arr[j + 1].length) > (arr[j]).length) { temp = arr[j + 1]; arr[j + 1] = arr[j]; arr[j] = temp; exchange = true; } } if (!exchange) break; } return arr; } } //—————-end———————— var divObj = document.getElementById(“content”); MarkHighLight(divObj, ‘文章|关键|功能’);
Heavy-duty moisturizerSoothe the itch of stretching skin with a rich oil or lotion. If your skin – or sense of smell – is extra sensitive these days, go for a scent-free product. For an even bigger aaaah factor, chill the moisturizer in the fridge. |
|||||||||||||||||||||
Soft toothbrush and good flossSoaring progesterone levels make your gums more sensitive and prone to pregnancy gingivitis. Unchecked gingivitis can turn into periodontitis, a much more serious gum disease, so you’ll want to give your gums thorough but tender care, with an extra-soft toothbrush. |
|||||||||||||||||||||
Panty liners and breast padsNot all women need them, but panty liners discreetly handle all sorts of pregnancy drips, from heavier vaginal discharge to possible urine leakage when you laugh, cough, or sneeze. |
|||||||||||||||||||||
Morning sickness soothersOne woman’s go-to remedy may do nothing to quell your queasiness, so if you’re suffering from morning sickness you’ll probably need to experiment to find something that works for you. Popular ones to try: ginger candies or tea, pregnancy lollipops and suckers, vitamin B6, and acupressure bands. |
|||||||||||||||||||||
VitaminsPrenatal vitamins. These contain folic acid and iron, two nutrients that are important for pregnancy but hard to get enough of through diet alone. They’ve got the right amount of other vitamins and minerals for pregnancy as well. |
|||||||||||||||||||||
AntacidMany women first experience the fiery discomfort of heartburn in the second half of pregnancy. There’s no cure other than delivery, but some over-the-counter meds are safe, providing you get your caregiver’s okay first. |
|||||||||||||||||||||
Constipation remedyCombine slower digestion with a growing uterus that crowds your digestive tract, and you may wind up with epic constipation. If more water, exercise, and fiber-rich foods don’t do the trick, fiber supplements are safe to use when you’re pregnant – every day, if needed – and may help prevent hemorrhoids. Stool softeners are generally considered okay to use, but check in with your doctor before you start taking any. |
|||||||||||||||||||||
Gas remedyThe same culprit behind your constipation – higher progesterone levels – can be blamed for making you more bloated and gassy than you’ve ever been in your life. An over-the-counter medication with simethicone will help you feel fit to be in public again; just make sure to get your caregiver’s okay first. |
|||||||||||||||||||||
Hemorrhoid reliefConstipation and pressure from your growing uterus make you more prone to hemorrhoids. Medicated wipes are safe for pregnancy, as are some creams and suppositories. Some women find witch hazel pads also spell hemorrhoid relief, and they may do double-duty in fighting pregnancy acne. |
|||||||||||||||||||||
Yeast infection treatmentYeast infections can be another not-so-fun side effect of pregnancy, but luckily, there are many pregnancy-safe creams or suppositories to help you fight the dreaded itch. Just make sure to check in with your caregiver first, to find out whether a yeast infection’s really what’s causing your symptoms. |
|||||||||||||||||||||
Sleep aidThere’s plenty to keep you up at night these days – discomfort, frequent bathroom trips, heartburn, and middle-of-the-night anxiety attacks about finances, for starters. No wonder more than three-quarters of pregnant women experience insomnia. When you need some rest, there are a few sleep aids that are generally considered safe for occasional use. As with any medication, though, check with your caregiver first. |
|||||||||||||||||||||
Pain reliever and fever reducerMany of these medications, like aspirin or ibuprofen, are off-limits during pregnancy, but acetaminophen is a safe way to treat pain, headache, and fever. Just make sure you follow the dosage instructions on the label. Over-the-counter Medicationspain relievers and fever reducers are safe during pregnancyOf course, nothing is 100 percent safe for all women, so it’s a good idea to check with your doctor before taking any kind of medicine during pregnancy – even an over-the-counter product. Don’t take more than the recommended dose and, if possible, avoid taking anything during your first trimester, when your developing baby is most vulnerable.
. |
|||||||||||||||||||||
Allergy remedyPregnancy can worsen allergies, or even make you allergic to substances that never bothered you before. Doctors prefer you to avoid medications during the first trimester as much as possible, but later on you can consult your caregiver about a safe allergy treatment. (Note: Many women get a stuffy nose during pregnancy without having a cold or allergies. If you don’t have any symptoms besides congestion, you may have “rhinitis of pregnancy.”) |
|||||||||||||||||||||
Cold medicationGetting sick while pregnant is extra miserable. Some cold drugs are safe for pregnancy and some aren’t. Because most cold medications contain several drugs to treat different symptoms, you’ll need to read labels carefully. See the full list of what’s okay and what to avoid. |
|||||||||||||||||||||
Nose care productsSaline spray or drops can help you clear out your schnoz and breathe a little easier whether you have a cold, allergies, or just a stuffy nose. And unlike a decongestant spray, you don’t need to get your doctor’s okay to use it. |
|||||||||||||||||||||
EyedropsPregnancy hormones can make your eyes feel more dry and irritated. Some over-the-counter dry-eye drops are fine, while others contain ingredients that aren’t proven safe for pregnancy, so ask your doctor for a recommendation. |
|||||||||||||||||||||
Heating padHeat isn’t a proven therapy for pregnancy aches such as low back pain, but some women find it helps. Heating pads, hot water bottles, and microwavable heating packs are all safe options. |
|||||||||||||||||||||
Acne fighterHormonal changes give some lucky women a clear “pregnancy glow” but leave many others with more pimples than they’ve seen since puberty. Over-the-counter products containing alpha-hydroxy acids or glycolic acid are safe for pregnancy and may help control breakouts. If not, visit a dermatologist for stronger (but still baby-safe) options. Learn more about pregnancy-safe skin care. |
|||||||||||||||||||||
SunscreenIt’s always recommended, but using sunscreen during pregnancy can prevent or minimize blotchy areas of skin darkening, known as the “mask of pregnancy.” Look for a broad-spectrum sunscreen that blocks both UVA and UVB rays with an SPF of 30 or higher. Then wear it every day – clouds or shine. |
|||||||||||||||||||||
Hair removal productThe good news: Higher estrogen levels slow down the natural shedding of hairs, giving you a thicker head of hair. The bad news: You may notice more hair sprouting on your face or body, too. Waxing, tweezing, and shaving are all safe, but experts recommend staying away from bleaches and depilatories for now, since you may absorb the chemicals through your skin. |
|||||||||||||||||||||
Hair accessoriesIf you’ve suddenly got more hair than you know what to do with, and not much time or energy to style it, hair clips, bands, combs, and pins can come in handy. Once you get the hang of it, a casually elegant updo (think French twist, messy bun) only takes a minute. |
$(document).ready(function(){ $(‘#myPageFlip’).jPageFlip({ width: “imageWidth”, height: “imageHeight”, // other parameters }); });
var pdfbuttonlabel=”Save page as PDF”
(function(){ var _w = 72 , _h = 16; var param = { url:location.href, type:’3′, count:’1′, /**是否显示分享数,1显示(可选)*/ appkey:’1070709535′, /**您申请的应用appkey,显示分享来源(可选)*/ title:”, /**分享的文字内容(可选,默认为所在页面的title)*/ pic:”, /**分享图片的路径(可选)*/ ralateUid:’2409344871′, /**关联用户的UID,分享微博会@该用户(可选)*/ language:’zh_tw’, /**设置语言,zh_cn|zh_tw(可选)*/ rnd:new Date().valueOf() } var temp = []; for( var p in param ){ temp.push(p + ‘=’ + encodeURIComponent( param[p] || ” ) ) } document.write(”) })() public String captureScreen() { String path; try { WebDriver augmentedDriver = new Augmenter().augment(driver); File source = ((TakesScreenshot)augmentedDriver).getScreenshotAs(OutputType.FILE); path = “./target/screenshots/” + source.getName(); FileUtils.copyFile(source, new File(path)); } catch(IOException e) { path = “Failed to capture screenshot: ” + e.getMessage(); } return path; } function run_pinmarklet1() { var e=document.createElement(‘script’); e.setAttribute(‘type’,’text/javascript’); e.setAttribute(‘charset’,’UTF-8′); e.setAttribute(‘src’,’http://assets.pinterest.com/js/pinmarklet.js?r=’+Math.random()*99999999); document.body.appendChild(e); }