Christian Science Responsive Widgets
Monitor News Widget
Other examples
Display parameters
Parameters copied to the clipboard
Param Default Options Description SP mn css Style Prefix IS Image Style (eg img-fluid) to add. DI Y Y or N Display Logo image DN 5 1 to 5 Display Number of news items RG europe Region for news items Allows you to have multiple versions of this widget, each with their own associated CSS, on a single web page europe, usa, world, pacific, africa, middleeast, americas
Javascript for extracting widget content
Javascript code copied to the clipboard
<head> ... <script type='text/javascript' src='https://christianscience.org.uk/rwidgets/js/tmwidgets.js'></script> <script type='text/javascript'> getWidgetData('monitornews','DN=3&IS=img-fluid','MNwidget'); </script> ... </head> <body> ... <div id='MNwidget'></div> ... </body>
Notes The getWidgetData (javascript function) has three elements 1=Widget reference, 2=parameters and 3=div id where widget content is to be displayed Put javascript references in page head section Put referenced widget div in page body section for content display There is no javascript dependency on jQuery
Styling illustration
Styling example copied to the clipboard
<style type='text/css'> .mnTopLogo{padding-bottom:10px;} .mnHdrImage{display:block;margin-left:auto;margin-right:auto;} .mnItem{font-family:Arial;color:#000;padding-top:10px;width:100%;} .mnImage{float:left;padding-right:10px;width:40%} .mnTitle{font-size:17px;padding-bottom:10px;} .mnInfo{font-size:14px;} .mnSummary{font-size:14px;} .mnclear{clear:both;} a.mnLink{text-decoration:none;color:#000099;} a.mnLink:hover,a.mnLink:active{text-decoration:none;color:#000;} </style>
 

© 2026  T Marr IT Services     •     Email: itservices@trevormarr.com    •     Privacy    •     Cookies    •     Site Map