1. Dodamies uz moduli, kurā vēlamies redzēt šo skriptu
2. Tālāk dodamies uz Page with full entry text and associated comments
3. Atrodam vietu, kur vēlamies redzēt šo skriptu
4. Ievietojam tajā vietā šo kodu:
Code
<a href="javascript:urlopen();" style="text-decoration: none;">Links uz materiālu</a>
5. Un apmēram tur pat ievietojam šo skriptu:
Code
<script type="text/javascript">function nrmurl(){$("#rchp, #normurl").show(); $("#nrml, #chpy").hide();} function chpyrl(){$("#rchp, #normurl").hide(); $("#nrml, #chpy").show();} function urlopen(){new _uWnd('link','Tiešā saite uz materiālu',400,310,{align:0,shadow:1,autosize:1,maxh:350,minh:100,resize:0},'<div id="normurl"><fieldset><legend>html-links uz materiālu</legend><textarea readOnly style="width:100%; height:29px; font-size:11px; border:1px solid #E0E0E0;" onfocus="this.select();"><a href="'+window.location+'">$ENTRY_TITLE$</a></textarea></fieldset><br><fieldset><legend>BB-links uz materiālu</legend><textarea readOnly style="width:100%; height:29px; font-size:11px; border:1px solid #E0E0E0;" onfocus="this.select();">[url='+window.location+']$ENTRY_TITLE$[/url]</textarea></fieldset><br><fieldset><legend>Vienkāršs links uz materiālu</legend><textarea readOnly style="width:100%; height:29px; font-size:11px; border:1px solid #E0E0E0;" onfocus="this.select();">'+window.location+'</textarea></fieldset>');};</script>
Iznākums:
[table][/table]