You are viewing our Forum Archives. To view or take place in current topics click here.
Need website help +Rep
Posted:

Need website help +RepPosted:

mikescott0777
  • Challenger
Status: Offline
Joined: Nov 18, 201112Year Member
Posts: 133
Reputation Power: 5
Status: Offline
Joined: Nov 18, 201112Year Member
Posts: 133
Reputation Power: 5
Hello i need help with coding my website.

I need to box/text like this image: [ Register or Signin to view external links. ]

When clicked to open a popup windows like this image: [ Register or Signin to view external links. ]

How would i go about doing this?
#2. Posted:
-Deano
  • PC Master Race
Status: Offline
Joined: Aug 19, 201013Year Member
Posts: 5,238
Reputation Power: 532
Status: Offline
Joined: Aug 19, 201013Year Member
Posts: 5,238
Reputation Power: 532
A simple way would be to hide the popup in a separate div, or span, with a class to hide the content.
When you click on the item, you would then change the class to display the popup using javascript.

So you need to create a separate div for the popup, a style for the popup to have and an onclick() event for when the text is clicked, we need to show the popup.

(I can't post html code in the code format because the page won't let me)
HTML

[ Register or Signin to view external links. ]

CSS

[ Register or Signin to view external links. ]

JAVASCRIPT
[ Register or Signin to view external links. ]

There's functional stuff for displaying the popup, it's up to you to figure out how to hide/format the popup - I won't do all the work for you
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.