I play a game that when your backpack fills with items (the limit is 45) you must choose items to discard by unchecking their box. This is very annoying and time consuming so I was wondering if it were possible to create a Javascript function to be saved as a bookmark, and when used it prompts for the checkbox to start at (so it won't discard items that I want to keep) and discards all items after that point. So my main question is, is it possible for Javascript to manipulate a webpage in this way?
Here is part of the code used: - <FORM ACTION = maze.php METHOD = post name=battle><input type=hidden name=discard value=1>
-
<br>You cannot carry all of these items!
-
Select 45 items to keep.
-
The rest will be discarded.<table><tr><td><input type=checkbox name=Item0 value=1 checked></td>
-
<td>Forest Sloth Fang (72)</td>
-
<td>animal part</td><td><input type=checkbox name=Item1 value=1 checked></td>
-
<td>Ridiculous Refreshing Potion (20)</td>
-
<td>Restores 5000 HP and 5000 Mana</td></tr><tr><td><input type=checkbox name=Item2 value=1 checked></td>
-
<td>Ridiculous Refreshing Potion (20)</td>
-
<td>Restores 5000 HP and 5000 Mana</td><td><input type=checkbox name=Item3 value=1 checked></td>
-
<td>Ridiculous Refreshing Potion (20)</td>
-
<td>Restores 5000 HP and 5000 Mana</td></tr><tr><td><input type=checkbox name=Item4 value=1 checked></td>
-
<td>Ridiculous Refreshing Potion (20)</td>
-
<td>Restores 5000 HP and 5000 Mana</td><td><input type=checkbox name=Item5 value=1 checked></td>
-
<td>Ridiculous Refreshing Potion (13)</td>
-
<td>Restores 5000 HP and 5000 Mana</td></tr><tr><td><input type=checkbox name=Item6 value=1 checked></td>
-
<td>Scroll of Antaria Warp (2)</td>
-
<td></td><td><input type=checkbox name=Item7 value=1 checked></td>
-
<td>Keen Claymore</td>
-
<td>huge, 20d12 damage, +6 attack</td></tr><tr><td><input type=checkbox name=Item8 value=1 checked></td>
-
<td>Keen Claymore</td>
-
<td>huge, 20d12 damage, +6 attack</td><td><input type=checkbox name=Item9 value=1 checked></td>
-
<td>Keen Claymore</td>
-
<td>huge, 20d12 damage, +6 attack</td></tr><tr><td><input type=checkbox name=Item10 value=1 checked></td></tr></table>
Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(") 1 1861 Sign in to post your reply or Sign up for a free account.
Similar topics |
by: JIM |
last post by:
Hello,
I would like to solve the following problem :
I've a web site with ex. 5 checkboxes
Each checkbox contains the name of a certain task
ex.
asp:Checkbox 1: Task 1
asp:Checkbox 2: Task 2
...
|
by: rn5a |
last post by:
All the rows in a DataGrid, including the Header, are accompanied with
a CheckBox. I want that when the CheckBox in the Header is checked,
then all the CheckBoxes should automatically get checked. I set the
AutoPostBack property of the CheckBox in the Header to True & am
invoking a sub named 'CheckAllRows' on the CheckedChanged event of this
CheckBox. The CheckBox in the Header exists within the HeaderTemplate
of a TemplateColumn in the...
|
by: avanti |
last post by:
Hi,
I add rows to my table dynamically, with a checkbox in each row in the
first column. The checkbox in the header row acts as a 'Select All'
checkbox. Whenever it is checked, checkboxes in all the rows get
checked. I tried this with changing the innerXML of the cell - but it
is not a very elegant solution.
What would be the best way to do this?
|
by: manojsingh |
last post by:
hi,
This is my program and it is resluting same message "checked" everytime, either i checed it or unchecked the given checkbox.
Please have a look .
<html>
<head>
<title>Customer Inquiry</title>
<SCRIPT language="JavaScript1.2">
|
by: Ed |
last post by:
I'm writing a VBA macro in Word 2003 that finds and manipulates a web
page (Win XP, IE6 sp2). I am having trouble with a checkbox. I can
find the checkbox and make it checked, but I can't figure out how to
activate the function connected to the OnClick event. Would anyone be
able to help me out here, please?
Thanks.
Ed
| |
by: prpleprncs |
last post by:
I have a form that has a five checkboxes. Two of the checkboxes (let's call them box4 and box5) cannot both be checked. For example, if box4 is checked, box5 will uncheck and vice versa. I am new to SQL/PL and do not know what to code in the trigger to get this done.
|
by: ameshkin |
last post by:
I have a checkbox with an ID of svc_tp_1, and an image that
corresponds with this checkbox below it.
<input type="checkbox" name="checkbox" id="svc_tp_1" value="svc_tp_1" /
<img src="images/screen_print.jpg" onclick="toggle('svc_tp_1'); return
true;" />
I know how to get the checkbox to check when the image is clicked, but
what I really want is a toggle. When a user clicks on the image, the
system should first check to see if svc_tp_1...
|
by: PhpCool |
last post by:
Hi, since sometime I'm stuck in a problem where I want to check or
uncheck all the checkboxes. If I'm choosing name for the checkbox
array as 'chkbx_ary' then I'm able to check/uncheck all the checkboxes
(code pasted below). But if name of the checkbox array is
'chkbx_ary' then it's failing. I want the name to be 'chkbx_ary'
because I want to access this array at server side.
Though one may not require to see php part but I'm still pasting...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |