Skip to content

Tag: html

Clicking images to pass the names in a URL string

I have a low level knowledge of javascript and am trying to create a basic image based quiz that passes data back to a search page for local businesses. Each image would have it’s own “tag” as the image ID that relates to one of the options in the search. Ie. Outdoor, Ballroom, Barn, Garden,…

getting the height of the text in a fixed height div

Say I have this code: With a font-size of 150px it’s none to surprising that the text inside the div would be bigger than the div itself. At least in Google Chrome it is. My question is… how might I go about figuring out the height / width of the text within a fixed size div? Using jQquery, $(&#82…

Make mouse cursor custom image change onclick

First, I am building a website on cargo. There’s html editor but I don’t think it works that well along with the site builder itself. I want my custom image mouse cursor image change while it’s on click. I’ve got three problems here: I can’t set my default cursor to image. (It wa…

Create new dynamic id in javascript

I have this piece of code right here that creates somewhat of a grid (but not really) of chocolate pieces in x and y positions (height and length) depending on what the user chooses in the input, and i want it to assign a new id (preferably imgPos1, imgPos2 etc…) to each piece of chocolate it produces i…

How to I add error messages as per the error in HTML

Currently the Error message that is displayed is common for all the errors . But i want to display different error messages for different errors. Like for Invalid password it should display invalid password. Whereas for invalid username it should display invalid username. Can someone Please tell me How should…