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
Pure VPN - Up to 27 Months
vgp
Updated:
Yesterday at 8:10 AM
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
May 30, 2026
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
JS Help
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="JohnSnow" data-source="post: 28248778" data-attributes="member: 561961"><p>මචන්ලා හෙල්ප් එකක් ඕන. මට ඕන සයිස් එක සිලෙක්ට් කරම ප්රයිස් එක එ අනුව චෙන්ග් වෙන්න. කොහොමද මේක JS වලින් කරන්නෙ කියලා අයිඩියා එකක් දෙන්න පුලුවන්ද? <img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /></p><p></p><p></p><p>[ATTACH=full]186682[/ATTACH]</p><p></p><p>[CODE=php]<?php</p><p></p><p>$pizza = array(</p><p> array("img/pizza01.png", "Chicken Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 900, 1600, 2500),</p><p> array("img/pizza02.png", "Seafood Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 1100, 1900, 2700),</p><p> array("img/pizza03.png", "Mix Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 1500, 2200, 3700),</p><p> array("img/pizza04.png", "Cheese Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 700, 1200, 2300),</p><p> array("img/pizza05.png", "Chicken Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 900, 1600, 2500),</p><p> array("img/pizza06.png", "Seafood Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 1100, 1900, 2700),</p><p> array("img/pizza07.png", "Mix Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 1500, 2200, 3700),</p><p> array("img/pizza08.png", "Cheese Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 700, 1200, 2300),</p><p> array("img/pizza09.png", "Chicken Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 900, 1600, 2500),</p><p> array("img/pizza10.png", "Seafood Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 1100, 1900, 2700),</p><p> array("img/pizza11.png", "Mix Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 1500, 2200, 3700),</p><p> array("img/pizza12.png", "Cheese Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 700, 1200, 2300),</p><p>);</p><p></p><p>?>[/CODE]</p><p></p><p>[CODE=html] <div id="pizza" class="tab-content"></p><p> <div class="item-box-one"></p><p> <div class="box-container"></p><p></p><p> <?php for ($i = 0; $i < 4; $i++) {?></p><p> <div class="box"></p><p> <img src="<?php echo $pizza[$i][0]; ?>" alt=""/></p><p> <h3><?php echo $pizza[$i][1]; ?></h3></p><p> <p><?php echo $pizza[$i][2]; ?></p></p><p> <div class="size" id="size" data-value=""></p><p> <div class="btn-size"></p><p> <button class="btn btn-active" onclick="openSize(event,'s')"><?php echo $pizza[$i][3]; ?></button></p><p> <button class="btn" onclick="openSize(event,'m')"><?php echo $pizza[$i][4]; ?></button></p><p> <button class="btn" onclick="openSize(event,'l')"><?php echo $pizza[$i][5]; ?></button></p><p> </div></p><p> <div class="price"></p><p> <h2 id="s" class="pi-size-price">Rs: <?php echo $pizza[$i][6]; ?></h2></p><p> <h2 id="m" class="pi-size-price">Rs: <?php echo $pizza[$i][7]; ?></h2></p><p> <h2 id="l" class="pi-size-price">Rs: <?php echo $pizza[$i][8]; ?></h2></p><p> </div></p><p> </div></p><p> <button>ADD TO CART</button></p><p> </div></p><p> <?php }?></p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="JohnSnow, post: 28248778, member: 561961"] මචන්ලා හෙල්ප් එකක් ඕන. මට ඕන සයිස් එක සිලෙක්ට් කරම ප්රයිස් එක එ අනුව චෙන්ග් වෙන්න. කොහොමද මේක JS වලින් කරන්නෙ කියලා අයිඩියා එකක් දෙන්න පුලුවන්ද? :) [ATTACH type="full" alt="Screenshot 2022-10-11 194749.png"]186682[/ATTACH] [CODE=php]<?php $pizza = array( array("img/pizza01.png", "Chicken Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 900, 1600, 2500), array("img/pizza02.png", "Seafood Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 1100, 1900, 2700), array("img/pizza03.png", "Mix Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 1500, 2200, 3700), array("img/pizza04.png", "Cheese Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 700, 1200, 2300), array("img/pizza05.png", "Chicken Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 900, 1600, 2500), array("img/pizza06.png", "Seafood Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 1100, 1900, 2700), array("img/pizza07.png", "Mix Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 1500, 2200, 3700), array("img/pizza08.png", "Cheese Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 700, 1200, 2300), array("img/pizza09.png", "Chicken Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 900, 1600, 2500), array("img/pizza10.png", "Seafood Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 1100, 1900, 2700), array("img/pizza11.png", "Mix Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 1500, 2200, 3700), array("img/pizza12.png", "Cheese Pizza", "tomato sauce, mozzarella cheese, cocktail, shrimps salmon, mussels, lemon, parsley", "S", "M", "L", 700, 1200, 2300), ); ?>[/CODE] [CODE=html] <div id="pizza" class="tab-content"> <div class="item-box-one"> <div class="box-container"> <?php for ($i = 0; $i < 4; $i++) {?> <div class="box"> <img src="<?php echo $pizza[$i][0]; ?>" alt=""/> <h3><?php echo $pizza[$i][1]; ?></h3> <p><?php echo $pizza[$i][2]; ?></p> <div class="size" id="size" data-value=""> <div class="btn-size"> <button class="btn btn-active" onclick="openSize(event,'s')"><?php echo $pizza[$i][3]; ?></button> <button class="btn" onclick="openSize(event,'m')"><?php echo $pizza[$i][4]; ?></button> <button class="btn" onclick="openSize(event,'l')"><?php echo $pizza[$i][5]; ?></button> </div> <div class="price"> <h2 id="s" class="pi-size-price">Rs: <?php echo $pizza[$i][6]; ?></h2> <h2 id="m" class="pi-size-price">Rs: <?php echo $pizza[$i][7]; ?></h2> <h2 id="l" class="pi-size-price">Rs: <?php echo $pizza[$i][8]; ?></h2> </div> </div> <button>ADD TO CART</button> </div> <?php }?> [/CODE] [/QUOTE]
Insert quotes…
Verification
Haya warak paha keeyada? (haya wadi kireema paha)
Post reply
Top
Bottom