Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Bodim.lk out now !
Manoj Suranga Bandara
Updated:
Yesterday at 3:05 AM
Power Lifting Lever Belt
SkullVamp
Updated:
Jun 13, 2026
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Jun 13, 2026
Colombo
Kaduwela - Two Storey House for Sale
dilrasan
Updated:
Jun 11, 2026
Ad icon
Wechat qr verification
Pawan2005
Updated:
Jun 11, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
Elakiri.com Image Viewer
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Topology" data-source="post: 9562298" data-attributes="member: 343193"><p><u><strong><span style="font-family: 'Trebuchet MS'"><span style="font-size: 22px">Elakiri Image Viewer</span></span></strong>.</u></p><p></p><p></p><p>All right guys. you can see these bunch of codes have been written by myself for viewing images on Elakiri.com. there are 3 varieties.</p><p></p><p></p><p></p><ol> <li data-xf-list-type="ol">first one is get all images from the 0 index position to available images on elakiri.</li> <li data-xf-list-type="ol">second one is get images from specified location to specified location. it might be 5 to 5 that means return image index number 5(in elakiri images that were uploaded into the server are considered as attachments like other files so only images will be shown)</li> <li data-xf-list-type="ol">third variety is randomly get images within a given range. the range can be any integer value. but it would be considered from 0 position.</li> </ol><p><strong><span style="font-size: 15px"></span></strong></p><p><strong><span style="font-size: 15px">How to use</span></strong></p><p></p><p>Just copy all codes in following and paste them onto the notepad.</p><p>now save as name.html or name.htm and run through Firefox (at this time it only works on firefox ,I am pretty sure it doesn't work on IE but Chrome and Safari are unknown) </p><p></p><p>[CODE]</p><p></p><p></p><p></p><p></p><p><html></p><p> <head></p><p> <script type='text/javascript'></p><p> </p><p> var oriStr = "http://www.elakiri.com/forum/attachment.php?attachmentid=";</p><p> </p><p> function zeroTOSpecifiedImg()</p><p> {</p><p> var tempStr = document.getElementById("elakiri_img0_01").value;</p><p> if(tempStr == "")</p><p> {</p><p> alert("You need to type something.");</p><p> }</p><p> else</p><p> {</p><p> var number = parseInt(document.getElementById("elakiri_img0_01").value);</p><p> number -= 1;</p><p> var i=0;</p><p> var clearTimerVar;</p><p> </p><p> function imageLoading()</p><p> {</p><p> if(i<=number)</p><p> {</p><p> while(i<=number)</p><p> {</p><p> document.write("<td>Photo Number<br/>"+ i +"<img src='" + oriStr + i +"' style='width:auto;height:133px;'/> </td>");</p><p> i++;</p><p> if(i%7 == 0)</p><p> {</p><p> document.write("<tr>");//start the new row</p><p> document.write("</tr>");//end the previous row</p><p> }</p><p> }</p><p> if(i%7 !=0)</p><p> {</p><p> document.write("</tr>");//end the previous row</p><p> }</p><p> }</p><p> else</p><p> {</p><p> clearTimeout(clearTimer);</p><p> }</p><p> </p><p> document.write("</table>");</p><p> }</p><p> </p><p> function initialization()</p><p> {</p><p> document.write("<table border='0' cellpadding='5' cellspacing='5' style='border:solid black;'>");</p><p> imageLoading();</p><p> }</p><p> initialization();</p><p> </p><p> }</p><p> }</p><p> </p><p> function fromToImages()</p><p> {</p><p> var fromImages= parseInt(document.getElementById("elakiri_img1_01").value);</p><p> var toImages = parseInt(document.getElementById("elakiri_img1_02").value);</p><p> </p><p> function imageCall()</p><p> {</p><p> if(fromImages>toImages)</p><p> {</p><p> alert("you can't go reverse order so always from value should be less than to value");</p><p> }else</p><p> {</p><p> document.write("<table border='10' cellpadding='5' cellspacing='5' style='border:solid black'>");</p><p> document.write("<tr>");</p><p></p><p> while(fromImages<=toImages)</p><p> {</p><p> if(fromImages>toImages)</p><p> {</p><p> break;</p><p> }</p><p> document.write("<td>Photo Number<br/>"+ fromImages +"<img src='" + oriStr +fromImages +"' style='width:auto;height:133px'/> </td>");</p><p> fromImages++;</p><p> if(fromImages%7 == 0)</p><p> {</p><p> document.write("</tr>");//end the previous row</p><p> document.write("<tr>");//start the new row</p><p> }</p><p> </p><p> }</p><p> </p><p> if(fromImages%7 == 0)</p><p> {</p><p> document.write("</tr>");//end the previous row</p><p> }</p><p> document.write("</table>");</p><p> }</p><p> }</p><p> </p><p> imageCall(); </p><p> }</p><p> </p><p> function randomImages()</p><p> {</p><p> var ranNum = parseInt(document.getElementById("elakiri_img3_01").value);</p><p> var randNum = parseInt(document.getElementById("elakiri_img3_02").value);</p><p> </p><p> function ranFun()</p><p> {</p><p> if(ranNum<0 || ranNum == "" || randNum<0 || randNum == 0)</p><p> {</p><p> alert("value or range is either minus or invalid, check whatever you have typed and repeat the process.");</p><p> }else{</p><p> //oriStr</p><p> document.write("<table border='0' cellpadding='5' cellspacing='5' style='border:solid black' /> ");</p><p> document.write("<tr>");</p><p> var i=0;//initial value</p><p> ranNum -= 1;</p><p> while(i<=ranNum)</p><p> {</p><p> randValue = Math.floor(Math.random()*randNum);//get the random number</p><p> document.write("<td>Image Number<br/>"+ randValue +"<img src='"+ oriStr + randValue +"' style='width:auto;height:133px' />");</p><p> i++;</p><p> if(i%7 == 0)</p><p> {</p><p> document.write("<tr>");</p><p> document.write("</tr>");</p><p> }</p><p> </p><p> }</p><p> </p><p> if(i%7 !=0 )</p><p> {</p><p> document.write("</tr>"); </p><p> }</p><p> document.write("</table>");</p><p> }</p><p> }</p><p> ranFun();// call to the function</p><p> }</p><p> </script></p><p> </p><p></p><p> </head></p><p> <body></p><p> </p><p> <fieldset></p><p> <legend>Elakiri Image Viewer</legend></p><p> <table border='1' cellpadding='10' cellspacing='2' style='font-family:georgia;font-size:12px;background-color:milky white;border:double black;margin-left:50px;margin-top:20px'></p><p> <tr></p><p> <td></p><p> From 0 search images to unlimited.</p><p> </td></p><p> </p><p> <td></p><p> Amount of images from 0 index.<br/><input type='text' value='' id='elakiri_img0_01' /></p><p> </td></p><p> </p><p> <td></p><p> <input type='button' value='Submit' onclick="zeroTOSpecifiedImg();" /></p><p> </td></p><p> </tr></p><p> </p><p> <tr></p><p> <td></p><p> From 0 to x number of images.</p><p> </td></p><p> </p><p> <td></p><p> From Number. <br/><input type='text' value='' id='elakiri_img1_01' /></p><p> <br/></p><p> To Number. <br/><input type='text' value='' id='elakiri_img1_02' /></p><p> </td></p><p> </p><p> <td></p><p> <input type='button' value='Submit' onclick="fromToImages();" /></p><p> </td></p><p> </tr></p><p> </p><p> <tr></p><p> <td></p><p> Specify the amount of random images and the range too.</p><p> </td></p><p> </p><p> <td></p><p> Amount of Images.<br/><input type='text' value='' id='elakiri_img3_01' /></p><p> <br/></p><p> Range 0~Infinity :P.<br/><input type='text' value=''s id='elakiri_img3_02' /></p><p> </td></p><p> </p><p> <td></p><p> <input type='button' value='Submit' onclick="randomImages();" /></p><p> </td></p><p> </tr></p><p> </table></p><p> <br/></p><p> <p>This Program was developed by Topology for Elakiri.com.!, 2010/03/05</p></p><p> </fieldset></p><p> </body></p><p></html></p><p></p><p></p><p></p><p>[/CODE]<span style="font-size: 18px">Please Acknowledge the Developer(Topology-Elakiri.com) prior to redistribution.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">Report the bugs of the program if you can.!</span></p><p><span style="font-size: 18px"></span></p></blockquote><p></p>
[QUOTE="Topology, post: 9562298, member: 343193"] [U][B][FONT=Trebuchet MS][SIZE=6]Elakiri Image Viewer[/SIZE][/FONT][/B].[/U] All right guys. you can see these bunch of codes have been written by myself for viewing images on Elakiri.com. there are 3 varieties. [LIST=1] [*]first one is get all images from the 0 index position to available images on elakiri. [*]second one is get images from specified location to specified location. it might be 5 to 5 that means return image index number 5(in elakiri images that were uploaded into the server are considered as attachments like other files so only images will be shown) [*]third variety is randomly get images within a given range. the range can be any integer value. but it would be considered from 0 position. [/LIST] [B][SIZE=4] How to use[/SIZE][/B] Just copy all codes in following and paste them onto the notepad. now save as name.html or name.htm and run through Firefox (at this time it only works on firefox ,I am pretty sure it doesn't work on IE but Chrome and Safari are unknown) [CODE] <html> <head> <script type='text/javascript'> var oriStr = "http://www.elakiri.com/forum/attachment.php?attachmentid="; function zeroTOSpecifiedImg() { var tempStr = document.getElementById("elakiri_img0_01").value; if(tempStr == "") { alert("You need to type something."); } else { var number = parseInt(document.getElementById("elakiri_img0_01").value); number -= 1; var i=0; var clearTimerVar; function imageLoading() { if(i<=number) { while(i<=number) { document.write("<td>Photo Number<br/>"+ i +"<img src='" + oriStr + i +"' style='width:auto;height:133px;'/> </td>"); i++; if(i%7 == 0) { document.write("<tr>");//start the new row document.write("</tr>");//end the previous row } } if(i%7 !=0) { document.write("</tr>");//end the previous row } } else { clearTimeout(clearTimer); } document.write("</table>"); } function initialization() { document.write("<table border='0' cellpadding='5' cellspacing='5' style='border:solid black;'>"); imageLoading(); } initialization(); } } function fromToImages() { var fromImages= parseInt(document.getElementById("elakiri_img1_01").value); var toImages = parseInt(document.getElementById("elakiri_img1_02").value); function imageCall() { if(fromImages>toImages) { alert("you can't go reverse order so always from value should be less than to value"); }else { document.write("<table border='10' cellpadding='5' cellspacing='5' style='border:solid black'>"); document.write("<tr>"); while(fromImages<=toImages) { if(fromImages>toImages) { break; } document.write("<td>Photo Number<br/>"+ fromImages +"<img src='" + oriStr +fromImages +"' style='width:auto;height:133px'/> </td>"); fromImages++; if(fromImages%7 == 0) { document.write("</tr>");//end the previous row document.write("<tr>");//start the new row } } if(fromImages%7 == 0) { document.write("</tr>");//end the previous row } document.write("</table>"); } } imageCall(); } function randomImages() { var ranNum = parseInt(document.getElementById("elakiri_img3_01").value); var randNum = parseInt(document.getElementById("elakiri_img3_02").value); function ranFun() { if(ranNum<0 || ranNum == "" || randNum<0 || randNum == 0) { alert("value or range is either minus or invalid, check whatever you have typed and repeat the process."); }else{ //oriStr document.write("<table border='0' cellpadding='5' cellspacing='5' style='border:solid black' /> "); document.write("<tr>"); var i=0;//initial value ranNum -= 1; while(i<=ranNum) { randValue = Math.floor(Math.random()*randNum);//get the random number document.write("<td>Image Number<br/>"+ randValue +"<img src='"+ oriStr + randValue +"' style='width:auto;height:133px' />"); i++; if(i%7 == 0) { document.write("<tr>"); document.write("</tr>"); } } if(i%7 !=0 ) { document.write("</tr>"); } document.write("</table>"); } } ranFun();// call to the function } </script> </head> <body> <fieldset> <legend>Elakiri Image Viewer</legend> <table border='1' cellpadding='10' cellspacing='2' style='font-family:georgia;font-size:12px;background-color:milky white;border:double black;margin-left:50px;margin-top:20px'> <tr> <td> From 0 search images to unlimited. </td> <td> Amount of images from 0 index.<br/><input type='text' value='' id='elakiri_img0_01' /> </td> <td> <input type='button' value='Submit' onclick="zeroTOSpecifiedImg();" /> </td> </tr> <tr> <td> From 0 to x number of images. </td> <td> From Number. <br/><input type='text' value='' id='elakiri_img1_01' /> <br/> To Number. <br/><input type='text' value='' id='elakiri_img1_02' /> </td> <td> <input type='button' value='Submit' onclick="fromToImages();" /> </td> </tr> <tr> <td> Specify the amount of random images and the range too. </td> <td> Amount of Images.<br/><input type='text' value='' id='elakiri_img3_01' /> <br/> Range 0~Infinity :P.<br/><input type='text' value=''s id='elakiri_img3_02' /> </td> <td> <input type='button' value='Submit' onclick="randomImages();" /> </td> </tr> </table> <br/> <p>This Program was developed by Topology for Elakiri.com.!, 2010/03/05</p> </fieldset> </body> </html> [/CODE][SIZE=5]Please Acknowledge the Developer(Topology-Elakiri.com) prior to redistribution. Report the bugs of the program if you can.! [/SIZE] [/QUOTE]
Insert quotes…
Verification
Dahaya deken beduwama keeyada?
Post reply
Top
Bottom