This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes HTML5, CSS3 and jQuery website template, can't get the pop-ups to work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "HTML5, CSS3 and jQuery website template, can Watch "HTML5, CSS3 and jQuery website template, can New topic

HTML5, CSS3 and jQuery website template, can't get the pop-ups to work

iz stoyneff

Joined: Apr 06, 2012
Posts: 1
This is a free template I am trying to adapt for a personal portfolio:

I have edited the original template and uploaded it HERE
This is the style.css:

On the menu on the right, the template originally comes with three links - ME, MY WORK and CONTACT; when clicked, a Java pop-up shows the content of the links.

However I need two more links - RESUME and REFERENCES.

The pop-ups are defined in a separate file called pop-ups.js:

I have added the respective code in pop-ups.js for the two additional menu entries that I need, and also in index.html so they show on the webpage,
in style.css along with the code for the three pop-ups that work "out of the box".

The problem is that after all done, when I click on ANY of the two new entries I added (be it References or Resume) - no pop-up shows...

The two articles - References and Resume - are defined in index.html as such:

Here is the modified section from style.css - I added just two entries in each line (popupResume and popupReferences, etc):

And these are the two paragraphs I added to pop-outs.js:

I am not that good w/ Java so any help will be greatly appreciated, TIA!
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3117

Java and JavaScript are entirely different and the code which you are referring to is JavaScript, moving this thread to Javascript forum.

Mohamed Sanaulla | My Blog
I agree. Here's the link:
subject: HTML5, CSS3 and jQuery website template, can't get the pop-ups to work