
| Site Stats |
| Currently: 4 online
Total Hits: 3094715 |
| Domain Info |
| - Hosting brought on 06/19/2003 - Hosted by Ace-host recommended - 5GB space 60Gb data/month |
| Display information |
Optimised for:
1024 x 768 resolution Internet Explorer Macromedia FlashAlso tested and working in: Netscape Mozilla Firefox
|
| Being Validated |
|
| Girl |
| Char, 20, female, British, Gemini, ...more? |
| Alternative Navigation |
Girl Domain Tutorials Goodies Etc Clear |
| Recommended |
![]() |
| Change skin |
| Give a gift :) |
| Cam |
|
|
| Affiliates |
| Top 15 Referrers |
| 1) cute-spot.com [6765] 2) cute-spot.com [4134] 3) veredgf.fre... [3463] 4) carrieware.com [1678] 5) bouncy-bubb... [966] 6) divergente.org [846] 7) rainbow-bit... [744] 8) bouncy-bubb... [733] 9) shatteredel... [639] 10) rainbow-bit... [635] 11) yanhuahuo.b... [630] 12) cute.startk... [584] 13) users.volja... [565] 14) kao-ani.com [540] 15) so-juicy.net [537] |
| Search |
|
|
| so-youNET Advertisments! |
![]() Ace-host.Net |
|
Want to advertise here? Email me char@so-you.net click here for details |
| Replace broken images with nportal 2.0 tutorial |
|
Don't you just hate portals with nasty red crosses everywhere ? well sites go down all the time so sometimes deleting cams are not the answer, so with my portal I added a javascript so that if the image is a broken image, then a cam offline image appears, cool hey?! Follow the simple steps below... 1. Make sure you have nportal installed. Click here to download. Open up index.php find: for($m=$start-1; $m < $end; $m++) Paste the following code next to this $cam_id = $webcam1[$m]["id"]; You should now have
for($m=$start-1; $m < $end; $m++)
2. Find: $output = str_replace("%W_UPDATED%",$w_updated,$output); Directly below paste the following code: $output = str_replace("%CAM_ID%",$cam_id,$output); Now save the index.php file and upload it.
3. Open up the w_cell.tpl file find: <img src="%W_CAMURL%" height="%W_HEIGHT%" width="%W_WIDTH%" border="0"> Replace with: <SCRIPT LANGUAGE="JavaScript"> <!-- errorimg= 0; function LoadImage%CAM_ID%() { document.images.w%CAM_ID%.src = "%W_CAMURL%" } function ErrorImage%CAM_ID%() { errorimg++; if (errorimg>1){ document.images.w%CAM_ID%.onload = ""; document.images.w%CAM_ID%.src = "offline.jpg"; }else{ document.images.w%CAM_ID%.src = "%W_CAMURL%"; } } document.write('<img src="%W_CAMURL%" name="w%CAM_ID%" id="w%CAM_ID%" onerror="ErrorImage%CAM_ID%()" border=0 width=160 height=120></A>'); //--> </script> Save file and upload.
4. Make an image called offline.jpg, or call it whatever you like but if you do change the name, go back to the code in the step above and change offline.jpg to the url of the offline image. There you go ! no more nasty red crosses ! © Char. Please do not copy this tutorial or any others. |