Add ush.net news headlines to your website
The news section of ush.net is designed to allow you to include the news headlines on your website by cutting and pasting a few bits of javascript into your page.
Within the <head> tags of your html page - place the following code by cutting and pasting.
|
The are several places in the code above that you can alter to change the appearance of the headlines - have a play with it, to see what you can do. However - the most important thing you will want to change is what headline categories are displayed. There is one line that you will need to change (approx. 14 lines down): <SCRIPT LANGUAGE="Javascript" SRC="http://www.ush.net/home/news/js.php?category=26,27,48"></SCRIPT>The comma separated numbers after
'category=' (highlighted in red) are the category id's for the various sections. These id's are shown on the tree on the right, so just
choose the id of the section you wish to see headlines for and add them to your code after 'category='. If you select a 'root' node,
e.g. Hardcore - then you will also get all the sub-categories below it - General,Events and Releases. However - if you would just like to receive Hardcore event news
- then you would just put the Hardcore->Events category id into your page which would be 'category=40'.
Once the code above is in the head tags (and you have chosen and put in your list of categories) - all that is needed is to place the following code into the page where you want the headlines to appear. The [number] in the doNews([number]) in the code above refers to the width of the headlines. Feel free to change this to suit your site. An example of a plain html file accessing the headlines can be found here. It's a simple page which has the above javascript included and shows the Hardcore Releases and Old ush.net new headlines. |
|
|
www.ush.net
Contact us
- Please read
disclaimer
- Adrates on USH
A thought... One of the life's mysteries is how a two pound box of candy can make a woman gain five pounds. |
