Переход по ссылке при клике на id блока
7 USDВсем доброго дня.
Есть функция
JavascriptВыделить код | ||
|
Необходимо чтобы при клике на определенный айди блока отправляло на определенную ссылку.
Все работает до того времени, пока я не вставляю еще одну но с другой ссылкой, замена имен переменных не помогает.
Полный профан в JS...
Как сделать так чтобы все работало например при 20 разных id блоков.
Делаю вот тут vk.cc/8hUsXX (при клике на анимированную плитку должен быть переход по ссылке, при клике на ВСЮ плитку, в любое место а не как сейчас)
Спасибо
-
186 8 0 Добрый вечер! Могу быстро помочь, id должен быть только 1, у вас айдишки с базы идут ? Пишите в лс.
-
1737 29 0 Здраствуйте, готов приступить к работе. Сделаю качественно и быстро тем более опыт из js у меня есть. Мои проекты в личке (если нужны исходники могу вам скинуть).
Skype: [email protected]
Telegram: @yaroslav_iliuk
-
603 2 0 Готов вам помочь переписать на jquery будет работать на всех блоках, или могу помочь с html без js. Это уже от того что нужно вам.
-
Вообще в принципе очень странно.... ))))
id может быть только один!
-
при клике на анимированную плитку должен быть переход по ссылке, при клике на ВСЮ плитку, в любое место а не как сейчас , не проще html переделать? ссылкой сделать весь блок?
-
deleted by moderator
-
Какая зависимость id блока и ссылки на которую нужно перейти?
-
Current freelance projects in the category JavaScript
Adding new functionality to an existing project (ReactJS)Good time of the day! We are looking for a ReactJS developer to help us add new functionality to an existing platform. It is necessary to layout new pages and integrate them with the API. You can familiarize yourself with the design of the new pages at the link HERE. The API… JavaScript, Web programming ∙ 17 proposals |
Write an extension for Google Chrome
22 USD
Extension is needed for Google Chrome (fake forecast of the next number or color for the casino) Need to remember the last entered numbers and when the button is pressed, a random number is displayed Also need to remember the entered color and when the button is pressed, show a… JavaScript, Web programming ∙ 5 proposals |
Fix the landing page for Google Ads, clean up compromised linksSpecialist needed to clean compromised links from the website https://armadom.com.ua/ (landing was done on webflow) Google support writes: clean compromised links added below: cdnmetric[.]com/ Write if you have experience with this and know how to fix it to pass the appeal in… JavaScript, Web programming ∙ 1 proposal |
Laravel + VueJS + InertiaJSGood day, the project is written, it is working and ready to launch. Except for one nuance. SSR(Server Side Rendering) works very slowly, when launching a bot to check the load - the site crashes after 3-4 minutes. If you restart SSR during the check, it works but very slowly.… JavaScript, PHP ∙ 2 proposals |
Writing software for creating an Open Book on the Solana network
107 USD
During the creation of interchangeable tokens (SPL token) on the Solana network, it is necessary to automate the process of creating an Open Book for the token and speed it up by increasing transaction fees. Software functions: - Create Open Book - Set a "tea" limit on the… Java, JavaScript |